aliases #1

  • //
  • guest/
  • matt_attaway/
  • bash-scripts/
  • aliases
  • View
  • Commits
  • Open Download .zip Download (216 B)
function pcd {
 
    exist=`p4 -F %depotFile% files "$1"`
 
    path=`p4 -ztag -F %path% where "$1"`
 
    if [ -z "$exist" ]
    then
        dir=$path
    else
        dir=`dirname "$path"`
    fi
 
    cd "$dir"
}
# Change User Description Committed
#1 12124 Matt Attaway Add my bash function for cd-ing by depot path