Merge branch 'master' of gitee.com:klesh/dotfiles
This commit is contained in:
commit
5a6a6d3c1c
|
@ -53,7 +53,7 @@ if status is-interactive
|
||||||
alias dt='date "+%Y%m%d-%H%M%S"'
|
alias dt='date "+%Y%m%d-%H%M%S"'
|
||||||
|
|
||||||
# === PATH and file sourcing
|
# === 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 \
|
source_files /usr/share/autojump/autojump.fish /usr/local/share/autojump/autojump.fish \
|
||||||
~/.jabba/jabba.fish \
|
~/.jabba/jabba.fish \
|
||||||
~/.profile.fish
|
~/.profile.fish
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
|
set icons
|
||||||
|
set drawbox
|
||||||
|
|
||||||
cmd mkdir %mkdir "$@"
|
cmd mkdir %mkdir "$@"
|
||||||
|
|
||||||
cmd fp %powershell -NoProfile -Command Set-Clipboard $env:f
|
cmd fp %powershell -NoProfile -Command Set-Clipboard $env:f
|
||||||
cmd fn %powershell -NoProfile -Command Set-Clipboard (Split-Path -Leaf ($env:f -replace '"',''))
|
cmd fn %powershell -NoProfile -Command Set-Clipboard (Split-Path -Leaf ($env:f -replace '"',''))
|
||||||
|
|
||||||
|
|
||||||
|
map <f-2> rename
|
||||||
|
|
|
@ -113,3 +113,13 @@ function pass-edit {
|
||||||
Remove-Item $tmpfile.FullName -Force
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user