Skip to content

Instantly share code, notes, and snippets.

@unacceptable
Created October 6, 2017 12:47
Show Gist options
  • Save unacceptable/d214c889b1e95270b2901dff3ded49a5 to your computer and use it in GitHub Desktop.
Save unacceptable/d214c889b1e95270b2901dff3ded49a5 to your computer and use it in GitHub Desktop.
# .bash_profile
# Shell look and path
export PS1='$(date +%H:%M) \[\e[0;32m\]Mac Shell: \W/>\$ \[\e[m\]'
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/Scripts/.bin"
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
# Shell Histroy:
HISTTIMEFORMAT="%d/%m/%y %T "
HISTSIZE=5000
# alias and binds
alias ll='ls -l'
bind '"4~":"dig +short "' # F12 will result in 'dig +short '
# Functions
vim(){
/usr/local/bin/vim $@
}
python(){
/usr/local/bin/python $@
}
easy_install(){
/usr/local/bin/easy_install $@;
}
tscurl(){
curl -Lsvo /dev/null $@;
}
ciphers(){
nmap -p 443 --script ssl-enum-ciphers $@;
}
grep(){
/usr/local/bin/ggrep --color $@;
}
print(){
var="$1";
size="${#var}";
printf -v sep "%${size}s" "-";
printf "\n%s\n%s\n" "$var" "${sep// /-}";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment