mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Added decaying with time, fixed powershell, fixed windows git bash, fixed jc and child directory descent
This commit is contained in:
parent
481e5f37bb
commit
70b05034d2
29
bin/autojump_profile.ps1
Normal file
29
bin/autojump_profile.ps1
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
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
|
Loading…
Reference in New Issue
Block a user