Skip to content

Instantly share code, notes, and snippets.

@jcpst
Last active October 19, 2016 16:01
Show Gist options
  • Save jcpst/3167df992c24bd10a8973efcaafd08f0 to your computer and use it in GitHub Desktop.
Save jcpst/3167df992c24bd10a8973efcaafd08f0 to your computer and use it in GitHub Desktop.
Basic config for initial msys2 environment
EDITOR='vim'
LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:'
PATH=$(
echo "$PATH:/c/Users/joe/bin:/c/Users/joe/AppData/Roaming/nvm:/c/Program Files/nodejs" \
| awk -v RS=':' -v ORS=':' '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}'
)
export LS_COLORS
export PATH
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias bashrc='$EDITOR ~/.bashrc'
alias l='ls -lAh --color --group-directories-first'
alias nls='npm ls -g -depth 0'
alias reload='source ~/.bashrc && echo "your .bashrc file has been reloaded"'
### GIT
###############################################################################
alias gcm='git checkout master'
alias gfu='git fetch upstream'
alias glola="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all"
alias glog='git log --oneline --decorate --graph'
alias gmum='git merge upstream/master'
alias gra='git remote add'
alias gst='git status'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment