added cd shorthands
This commit is contained in:
1 parent
4f57d5d84f
commit
b5cbd2aaa1
1 file changed
+6
-1
+6
-1
@@ -140,4 +140,9 @@ ex ()
|
|||||||
}
|
}
|
||||||
# <<< Archive extraction <<<
|
# <<< Archive extraction <<<
|
||||||
|
|
||||||
|
# >>> cd shortcuts >>>
|
||||||
|
# "mkcd" to mkdir and then cd into the result
|
||||||
|
mkcd() { mkdir "$@"&&cd "$@";}
|
||||||
|
# "cdls" to cd and ls in one go
|
||||||
|
cdls() { cd "$@"&&ls;}
|
||||||
|
# <<< cd shortcuts <<<
|
||||||
Reference in new issue
Block a user