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