Last active
December 30, 2016 06:24
-
-
Save cypai/d74f5de78fa13f6e20c19fc502691c85 to your computer and use it in GitHub Desktop.
.bashrc additions
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
ulimit -v 4000000 | |
GIT_PROMPT_ONLY_IN_REPO=1 | |
source ~/.bash-git-prompt/gitprompt.sh | |
alias crontab="crontab -i" | |
alias aka="grep ^alias ~/.bashrc" | |
alias down="cd ~/Downloads" | |
alias doc="cd ~/Documents" | |
alias ls="ls --color=auto" | |
alias cgit="cd ~/cgit" | |
alias work="cd ~/work" | |
alias ppas="grep -r --include '*.list' '^deb ' /etc/apt/ | sed -re 's/^\/etc\/apt\/sources\.list((\.d\/)?|(:)?)//' -e 's/(.*\.list):/\[\1\] /' -e 's/deb http:\/\/ppa.launchpad.net\/(.*?)\/ubuntu .*/ppa:\1/'" | |
goto() { | |
cd ~/cgit/$1 | |
} | |
_goto() { | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
COMPREPLY=( $(compgen -W "$(ls ~/cgit/)" -- $cur) ) | |
} | |
complete -F _goto goto | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment