aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2015-08-01 22:44:59 +0200
committerMiquel Sabaté <mikisabate@gmail.com>2015-08-01 22:44:59 +0200
commiteffe8327668b2cfeef4d7e6fa16435971ed51c3d (patch)
treefa31e5fb8a5596d51993d92870225ff5c27ef85c
parent155f3f5de67a989bca1a7d7ae9e5c4cc6757ad1a (diff)
downloaddotfiles-effe8327668b2cfeef4d7e6fa16435971ed51c3d.tar.gz
dotfiles-effe8327668b2cfeef4d7e6fa16435971ed51c3d.zip
bash: cleaning up
-rw-r--r--bashrc14
1 files changed, 3 insertions, 11 deletions
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"