Added fn to move wiki, removed old path changes
No longer need to specifically add maven and meld to the path since they are being sym-linked to the ~/bin directory which is already on the path.
This commit is contained in:
parent
5bc9b555cd
commit
88e4b0dd0a
27
.bashrc
27
.bashrc
@ -17,21 +17,16 @@ alias tmux="tmux -2"
|
||||
alias grep="grep --color=auto"
|
||||
|
||||
# Adding applications to path
|
||||
if [[ -d /opt/maven/bin ]];
|
||||
then
|
||||
export PATH=$PATH:/opt/maven/bin
|
||||
fi
|
||||
|
||||
if [[ -d /opt/meld/bin ]];
|
||||
then
|
||||
export PATH=$PATH:/opt/meld/bin
|
||||
fi
|
||||
|
||||
if [[ -d ${HOME}/bin ]];
|
||||
then
|
||||
export PATH=$PATH:${HOME}/bin
|
||||
fi
|
||||
|
||||
if [[ -d ${HOME}/.rvm ]];
|
||||
then
|
||||
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
|
||||
fi
|
||||
|
||||
# Maven
|
||||
source ~/bin/maven-illuminate.sh
|
||||
alias mvnc="mvn-c clean"
|
||||
@ -69,5 +64,15 @@ function fn() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Backup and Move TiddlyWiki Download
|
||||
# usage: wiki-move
|
||||
function wiki-move() {
|
||||
if [[ -f ${HOME}/Dropbox/wiki.htm ]] && [[ -f ${HOME}/Downloads/wiki.htm ]];
|
||||
then
|
||||
echo "Backing up existing wiki and moving new one."
|
||||
mv ${HOME}/Dropbox/wiki.htm ${HOME}/Dropbox/wiki.htm.old
|
||||
mv ${HOME}/Downloads/wiki.htm ${HOME}/Dropbox/wiki.htm
|
||||
echo "Successfully replaced"
|
||||
fi
|
||||
}
|
||||
|
||||
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
|
||||
|
Loading…
Reference in New Issue
Block a user