Skip to content

Commit

Permalink
pwd alias and function to show linked/physical path discrepencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeah committed Dec 5, 2013
1 parent 20deaef commit 86a4d38
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion bashrc
Expand Up @@ -15,6 +15,7 @@ alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'

alias pwd="pwda"
alias psa="ps aux"
alias fgls='jobs'
alias apt-get='sudo apt-get'
Expand Down Expand Up @@ -52,6 +53,17 @@ PATH=$PATH:$HOME/bin:$HOME/.rvm/bin:$HOME/UserProgs/android-studio/bin:$Home/Use
# Add RVM (Ruby Virt Machine) to PATH for scripting
# Add Android-Studio, Genymotion to path

pwda () {
link=$(\pwd -L)
physical=$(\pwd -P)
if [ $link == $physical ]; then
echo ${link}
else
echo "Linked: "${link}
echo "Physical: "${physical}
fi
}

# up - goes up n directory levels
up(){
local d=""
Expand Down Expand Up @@ -166,9 +178,10 @@ apt-find () {
echo
}

export -f pwda
export -f up
export -f mkuniq
export -f mkgibo
export -f flac2mp3
export -f extract
export -f apt-find
export -f apt-find

0 comments on commit 86a4d38

Please sign in to comment.