AutoYADM commit: 2025-03-29 00:00:07
This commit is contained in:
parent
0e17858af2
commit
9ae75af257
2 changed files with 12 additions and 0 deletions
5
.config/fish/functions/cl.fish
Normal file
5
.config/fish/functions/cl.fish
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
function cl --wraps=cd --description 'cd, ls, clear'
|
||||||
|
cd $argv; or return 1
|
||||||
|
clear
|
||||||
|
ls
|
||||||
|
end
|
7
.config/fish/functions/fish_should_add_to_history.fish
Normal file
7
.config/fish/functions/fish_should_add_to_history.fish
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function fish_should_add_to_history
|
||||||
|
string match -q ' *' -- $argv; and return 1
|
||||||
|
for cmd in ls clear
|
||||||
|
string match -qr "^$cmd" -- $argv; and return 1
|
||||||
|
end
|
||||||
|
return 0
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue