mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Add the cdp function.
This commit is contained in:
parent
f7e528b4a1
commit
9cc2d0964b
1 changed files with 6 additions and 0 deletions
|
|
@ -3,3 +3,9 @@ function wo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
alias cdv='cd $WORKON_HOME'
|
alias cdv='cd $WORKON_HOME'
|
||||||
|
|
||||||
|
function cdp () {
|
||||||
|
cd "$(python -c "import os.path as _, ${1}; \
|
||||||
|
print _.dirname(_.realpath(${1}.__file__[:-1]))"
|
||||||
|
)"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue