mirror of
https://github.com/hydroxycarbamide/dotfiles.git
synced 2025-05-07 13:29:08 -04:00
fish: update configs and functions
This commit is contained in:
parent
3b5aebcd93
commit
8c262bb069
5 changed files with 47 additions and 21 deletions
3
dot_config/private_fish/functions/fish_greeting.fish
Normal file
3
dot_config/private_fish/functions/fish_greeting.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function fish_greeting
|
||||
catnap
|
||||
end
|
|
@ -27,7 +27,7 @@ function n --wraps nnn --description 'support nnn quit and change directory'
|
|||
|
||||
# The command function allows one to alias this function to `nnn` without
|
||||
# making an infinitely recursive alias
|
||||
command nnn $argv
|
||||
command nnn -P p $argv
|
||||
|
||||
if test -e $NNN_TMPFILE
|
||||
source $NNN_TMPFILE
|
||||
|
|
8
dot_config/private_fish/functions/y.fish
Normal file
8
dot_config/private_fish/functions/y.fish
Normal file
|
@ -0,0 +1,8 @@
|
|||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue