Skip to content

Instantly share code, notes, and snippets.

@bootandy
Created August 12, 2015 09:55
Show Gist options
  • Save bootandy/47265109bf9acdd741a0 to your computer and use it in GitHub Desktop.
Save bootandy/47265109bf9acdd741a0 to your computer and use it in GitHub Desktop.
basic bash script to drop on a new box
# colors
export CLICOLOR=1
export TERM=xterm-color
export LSCOLORS=gxgxcxdxbxegedabagacad # cyan directories
#Giant history
export HISTSIZE=99999
# set - same as _
set completion-map-case on
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
alias l='ls -alF'
alias 'ps?'='ps ax | grep '
alias 'psd'='docker ps'
alias logs='cd /var/log/containers/'
alias tale="ls -t | head -n1 | xargs tail -F | grep -A 15 -i -e error -e exception"
alias tal="ls -t | head -n1 | xargs tail -F"
alias catl="ls -t | head -n1 | xargs cat "
alias viml="ls -t | head -n1 | xargs vim"
alias logs='cd /var/log/containers'
alias code='cd /var/lib/hanson'
alias config='cd /etc/hanson_cfg/'
#echo "Here's whats running:"
#docker ps
df -kh | grep '/dev/'
echo "last arg: !$ last arg 1: !!:1"
echo "use tale & tal, catl, viml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment