Adds cdw alias
This commit is contained in:
parent
1920d0d9e1
commit
01596d9078
|
@ -60,6 +60,14 @@ mkcd() {
|
|||
mkdir $1 && cd $1
|
||||
}
|
||||
|
||||
# which && cd
|
||||
cdw() {
|
||||
f=`which $1`
|
||||
if [ $? -eq 0 ]; then
|
||||
cd `dirname $f`
|
||||
fi
|
||||
}
|
||||
|
||||
# Initialize thefuck
|
||||
command -v thefuck > /dev/null 2>&1
|
||||
|
||||
|
|
Loading…
Reference in New Issue