Skip to content

Instantly share code, notes, and snippets.

@nameldk
Last active September 19, 2017 08:34
Show Gist options
  • Select an option

  • Save nameldk/fd0ddda65f3dc5035eb09a66d5b6f62e to your computer and use it in GitHub Desktop.

Select an option

Save nameldk/fd0ddda65f3dc5035eb09a66d5b6f62e to your computer and use it in GitHub Desktop.
.bash_profile on windows git bash, .bashrc not working
# git
alias g='git'
alias gl='git pull'
alias gco='git checkout'
alias gb='git branch'
alias gba='git branch -a'
alias gst='git status'
alias gr='git remote'
# dir
alias ...='../..'
alias ....='../../..'
alias .....='../../../..'
alias ......='../../../../..'
alias -- -='cd -'
alias 1='cd -'
alias 2='cd -2'
alias 3='cd -3'
alias 4='cd -4'
alias 5='cd -5'
alias 6='cd -6'
alias 7='cd -7'
alias 8='cd -8'
alias 9='cd -9'
alias md='mkdir -p'
alias rd=rmdir
alias d='dirs -v | head -10'
alias lsa='ls -lah'
alias l='ls -lah'
alias ll='ls -lh'
alias la='ls -lAh'
# Push and pop directories on directory stack
alias pu='pushd'
alias po='popd'
# my diy
alias mymt="cd /F/data/www/mt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment