From effe8327668b2cfeef4d7e6fa16435971ed51c3d Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Sat, 1 Aug 2015 22:44:59 +0200 Subject: bash: cleaning up --- bashrc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index b4837e2..76c1151 100644 --- a/bashrc +++ b/bashrc @@ -47,7 +47,9 @@ __hg_branch() { PS1='\u:\w$(__hg_branch)$(__git_ps1 "\[\033[0;32m\]@\[\033[1;32m\]%s\[\033[0m\]\]") $ ' # Rake completion -complete -C $HOME/.rake_completion -o default rake +if [ -f $HOME/.rake_completion ]; then + complete -C $HOME/.rake_completion -o default rake +fi # KDE Paths export KDEDIR=$HOME/.kde @@ -105,16 +107,6 @@ if [ -d $HOME/.scripts ]; then export PATH=$HOME/.scripts:$PATH fi -# Generates a PDF version of the manual of the given command. -manpdf() { - man -t "$1" | ps2pdf - "$1.pdf" -} - -# Generate the contents for a .gitignore file. -function gi() { - curl http://www.gitignore.io/api/$@ -} - # Finally get RVM straight. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" export PATH="$PATH:$HOME/.rvm/bin" -- cgit v1.2.3