Adds cdw alias
This commit is contained in:
parent
b35bc69b88
commit
45210b6c8f
|
@ -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