From 78fa6ca8ad418cc1bc280e9b38250734e84a318e Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 1 Apr 2025 19:55:17 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-01 19:55:17 --- .config/fish/functions/{copyfile.fish => copyf.fish} | 2 +- .config/fish/functions/{copypath.fish => copyp.fish} | 2 +- .config/fish/functions/funcrename.fish | 6 ++++++ .config/fish/functions/othername.fish | 3 +++ 4 files changed, 11 insertions(+), 2 deletions(-) rename .config/fish/functions/{copyfile.fish => copyf.fish} (60%) rename .config/fish/functions/{copypath.fish => copyp.fish} (67%) create mode 100644 .config/fish/functions/funcrename.fish create mode 100644 .config/fish/functions/othername.fish diff --git a/.config/fish/functions/copyfile.fish b/.config/fish/functions/copyf.fish similarity index 60% rename from .config/fish/functions/copyfile.fish rename to .config/fish/functions/copyf.fish index 6482a2b9..dba286f7 100644 --- a/.config/fish/functions/copyfile.fish +++ b/.config/fish/functions/copyf.fish @@ -1,3 +1,3 @@ -function copyfile +function copyf cat $argv | wl-copy end diff --git a/.config/fish/functions/copypath.fish b/.config/fish/functions/copyp.fish similarity index 67% rename from .config/fish/functions/copypath.fish rename to .config/fish/functions/copyp.fish index f5a8d234..2594afca 100644 --- a/.config/fish/functions/copypath.fish +++ b/.config/fish/functions/copyp.fish @@ -1,3 +1,3 @@ -function copypath +function copyp path resolve $argv | wl-copy end diff --git a/.config/fish/functions/funcrename.fish b/.config/fish/functions/funcrename.fish new file mode 100644 index 00000000..dbdb7fb7 --- /dev/null +++ b/.config/fish/functions/funcrename.fish @@ -0,0 +1,6 @@ +function funcrename --wraps=funced --description 'Renames a user function' + functions --copy $argv[1] $argv[2] + functions --erase $argv[1] + funcsave $argv[2] + rm $fish_function_path[1]/$argv[1].fish +end diff --git a/.config/fish/functions/othername.fish b/.config/fish/functions/othername.fish new file mode 100644 index 00000000..d359c396 --- /dev/null +++ b/.config/fish/functions/othername.fish @@ -0,0 +1,3 @@ +function othername + echo Hello +end