Last active
September 21, 2018 08:26
-
-
Save JaminQ/a7ec2f2e48840578abf1006f4f75f674 to your computer and use it in GitHub Desktop.
qinit_config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git_branch { | |
branch="`git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //"`" | |
if [ "${branch}" != "" ];then | |
if [ "${branch}" = "(no branch)" ];then | |
branch="(`git rev-parse --short HEAD`...)" | |
fi | |
echo " ($branch)" | |
fi | |
} | |
export PS1='\u@\h \[\033[01;36m\]\W\[\033[01;32m\]$(git_branch)\[\033[00m\] \$ ' | |
alias grep="grep --color=auto" | |
alias ll='ls -al' | |
alias la='ls -la' | |
alias l='ls -alF' | |
alias ls-l='ls -l' | |
alias cd..='cd ..' | |
alias ..='cd ../' | |
alias ...='cd ../../' | |
alias ~='cd ~' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color.ui": true, | |
"alias.st": "status", | |
"alias.co": "checkout", | |
"alias.ci": "commit", | |
"alias.br": "branch", | |
"alias.unstage": "reset HEAD", | |
"alias.last": "log -1", | |
"alias.lg": "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit", | |
"push.default": "simple", | |
"credential.helper": "store" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment