Merge branch 'master' of gitee.com:klesh/dotfiles

This commit is contained in:
Klesh Wong 2021-03-25 11:55:07 +08:00
commit 5a6a6d3c1c
3 changed files with 16 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if status is-interactive
alias dt='date "+%Y%m%d-%H%M%S"'
# === PATH and file sourcing
append_paths ~/bin ~/.local/bin ~/.yarn/bin ~/dotfiles/bin ~/dotfiles/devops/bin
append_paths ~/go/bin ~/bin ~/.local/bin ~/.yarn/bin ~/dotfiles/bin ~/dotfiles/devops/bin
source_files /usr/share/autojump/autojump.fish /usr/local/share/autojump/autojump.fish \
~/.jabba/jabba.fish \
~/.profile.fish

View File

@ -1,5 +1,10 @@
set icons
set drawbox
cmd mkdir %mkdir "$@"
cmd fp %powershell -NoProfile -Command Set-Clipboard $env:f
cmd fn %powershell -NoProfile -Command Set-Clipboard (Split-Path -Leaf ($env:f -replace '"',''))
map <f-2> rename

View File

@ -113,3 +113,13 @@ function pass-edit {
Remove-Item $tmpfile.FullName -Force
}
}
function f {
[Cmdletbinding()]
$tmpfile = New-TemporaryFile
lf -last-dir-path $tmpfile
$lastdir = Get-Content $tmpfile
Remove-Item $tmpfile
cd $lastdir
}