Last active
March 19, 2020 03:48
-
-
Save adalbertopita/f9d2e91a5a864ab9dc71bd474a6f1893 to your computer and use it in GitHub Desktop.
aliases
This file contains hidden or 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
alias .='cd .' | |
alias ..='cd ..' | |
alias kill='kill -9' | |
alias la='ls -lah' | |
alias psx='ps aux | grep' | |
alias reload='source ~/.bashrc' | |
alias work='cd /home/adalberto/work' | |
alias clone='git clone' | |
alias fetch='git fetch --all && git fetch --tag' | |
alias ga='git commit -am' | |
alias gc='git commit' | |
alias gg='gitg &' | |
alias stash='git add . && git stash' | |
function color_my_prompt { | |
local __user_and_host="\[\033[01;30m\]\u@" | |
local __cur_location="\[\033[01;31m\]\w" | |
local __git_branch_color="\[\033[33m\]" | |
local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`' | |
local __prompt_tail="\[\033[37m\]$" | |
local __last_color="\[\033[00m\]" | |
export PS1="$__user_and_host $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color " | |
} | |
color_my_prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment