This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Retrievs a file's modified date and | |
# set's it as it's fielname. | |
# | |
declare -a files="${1}" | |
## Check if file has been specified | |
if [[ -z ${files} ]]; then | |
echo "No file(s) specified" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Install vim 7.4.x through homebrew | |
# $ brew install vim | |
# 2) Override default vim installation by creating | |
# aliases in your respective shell's dotfiles. | |
# (e.g. '.bash_profile', '.bashrc') | |
alias vim="/usr/local/Cellar/vim/7.4.944/bin/vim" | |
alias vi="/usr/local/Cellar/vim/7.4.944/bin/vim" | |
alias vimtutor="/usr/local/Cellar/vim/7.4.944/bin/vimtutor" | |
alias vimdiff="/usr/local/Cellar/vim/7.4.944/bin/vimdiff" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# @description: Capture and return the exit status | |
# | |
function exitStatus() { | |
"${1}" "${2}" >/dev/null ; echo $?; | |
} | |
## Test all the things!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# @description: This script takes multiple commands as arguments | |
# and checks if those commands exist on the system. | |
# Tested on bash, zsh, & ksh. | |
# | |
declare -a programs=("$@") | |
for i in "${programs}"; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Here are a set of color commands for | |
# your shell scripts. | |
#----------------Colors------------------ | |
#Black 0;30 Dark Gray 1;30 | |
#Blue 0;34 Light Blue 1;34 | |
#Green 0;32 Light Green 1;32 | |
#Cyan 0;36 Light Cyan 1;36 |