mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 20:20:38 +02:00
very cool stuff
This commit is contained in:
4
private_dot_config/private_fish/functions/chezedit.fish
Normal file
4
private_dot_config/private_fish/functions/chezedit.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function chezedit --wraps='chezmoi edit --apply' --description 'alias chezedit=chezmoi edit --apply'
|
||||
chezmoi edit --apply $argv
|
||||
|
||||
end
|
||||
4
private_dot_config/private_fish/functions/lazyg.fish
Normal file
4
private_dot_config/private_fish/functions/lazyg.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function lazyg
|
||||
git add .
|
||||
git commit -m "$argv"
|
||||
end
|
||||
4
private_dot_config/private_fish/functions/ls.fish
Normal file
4
private_dot_config/private_fish/functions/ls.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function ls --wraps='eza --long --icons --color' --description 'alias ls=eza --long --icons --color'
|
||||
eza --long --icons --color $argv
|
||||
|
||||
end
|
||||
8
private_dot_config/private_fish/functions/y.fish
Normal file
8
private_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
|
||||
Reference in New Issue
Block a user