1
0
mirror of https://github.com/wting/autojump synced 2024-09-29 22:40:46 +00:00

Added decaying with time, fixed powershell, fixed windows git bash, fixed jc and child directory descent

This commit is contained in:
Mitchell Ludwig 2019-09-15 00:32:11 -06:00
parent 481e5f37bb
commit 70b05034d2

29
bin/autojump_profile.ps1 Normal file
View 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