radio: files: fish: Remove redundant custom functions

impermanence
Luis Guilherme Coelho 2024-07-06 23:20:23 -03:00
parent 8d33ed13f2
commit 5484c4c8fb
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 0 additions and 9 deletions

View File

@ -4,21 +4,12 @@ function xdg-user-directory
'_DIR') '_DIR')
end end
function bang-bang
string replace '!!' "$history[1]" $argv[1]
end
function bang-bang-k function bang-bang-k
set -l k (string replace '!!:' '' $argv[1]) set -l k (string replace '!!:' '' $argv[1])
set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1])
echo $arr[$k] echo $arr[$k]
end end
function bang-dollar
set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1])
string replace '!$' "$arr[-1]" $argv[1]
end
function bang-star function bang-star
set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1])
string replace '!*' "$arr[..-2]" $argv[1] string replace '!*' "$arr[..-2]" $argv[1]