mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
30 lines
679 B
PowerShell
30 lines
679 B
PowerShell
Set-Alias -Name ll -Value ls
|
|
Function .. {cd ..}
|
|
Function ... {cd ../..}
|
|
Function .... {cd ../../..}
|
|
Function ..... {cd ../../../..}
|
|
Function ...... {cd ../../../../..}
|
|
Function ....... {cd ../../../../../..}
|
|
Function ........ {cd ../../../../../../..}
|
|
Function ......... {cd ../../../../../../../..}
|
|
Function .......... {cd ../../../../../../../../..}
|
|
|
|
Function j {
|
|
$jumpdir = autojump $args
|
|
echo "$jumpdir"
|
|
cd $jumpdir
|
|
}
|
|
|
|
Function jc {
|
|
j "$pwd" @args
|
|
}
|
|
|
|
Function g {
|
|
$repo_root = git rev-parse --show-toplevel
|
|
j $repo_root @args
|
|
}
|
|
|
|
Set-PSBreakpoint -Variable pwd -Mode Write -Action {
|
|
autojump --add "$pwd"
|
|
} | out-null
|