Skip to content

Instantly share code, notes, and snippets.

@beardeer
Last active January 21, 2016 19:58
Show Gist options
  • Select an option

  • Save beardeer/db79c7f6425372c3f982 to your computer and use it in GitHub Desktop.

Select an option

Save beardeer/db79c7f6425372c3f982 to your computer and use it in GitHub Desktop.
# bash helpers
alias l.='ls -d .*'
alias ll='ls -FGlAhp' # Preferred 'ls' imple$
cd() { builtin cd "$@"; ll; } # Always list director$
alias cd..='cd ../' # Go back 1 directory $
alias ..='cd ../' # Go back 1 directory $
alias ...='cd ../../' # Go back 2 directory $
alias .3='cd ../../../' # Go back 3 directory $
alias .4='cd ../../../../' # Go back 4 directory $
alias .5='cd ../../../../../' # Go back 5 directory $
alias .6='cd ../../../../../../' # Go back 6 directory $
alias cls=clear # more cmd style alias
alias s="git status"
alias l="git log"
alias gp="git pull"
alias gpu="git push"
# colorful
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]$
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment