From 5484c4c8fb2e73fb9ba79ff0366d9a60afd8003a Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sat, 6 Jul 2024 23:20:23 -0300 Subject: [PATCH] radio: files: fish: Remove redundant custom functions --- .../files/.config/fish/conf.d/fish_custom_functions.fish | 9 --------- 1 file changed, 9 deletions(-) diff --git a/home-environments/radio/files/.config/fish/conf.d/fish_custom_functions.fish b/home-environments/radio/files/.config/fish/conf.d/fish_custom_functions.fish index b265b5a..e4432d4 100644 --- a/home-environments/radio/files/.config/fish/conf.d/fish_custom_functions.fish +++ b/home-environments/radio/files/.config/fish/conf.d/fish_custom_functions.fish @@ -4,21 +4,12 @@ function xdg-user-directory '_DIR') end -function bang-bang - string replace '!!' "$history[1]" $argv[1] -end - function bang-bang-k set -l k (string replace '!!:' '' $argv[1]) set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) echo $arr[$k] 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 set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) string replace '!*' "$arr[..-2]" $argv[1]