From a3284c91e6b8e3847d29db51b8b2afce647d4969 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 13 Sep 2024 01:33:09 -0400 Subject: [PATCH] tidy fish configs --- fish/.config/fish/conf.d/fnm.fish | 3 +++ fish/.config/fish/conf.d/uv.env.fish | 2 ++ fish/.config/fish/functions/anonradio.fish | 3 --- fish/.config/fish/functions/ddg.fish | 3 +++ fish/.config/fish/functions/fish_greeting.fish | 6 ------ fish/.config/fish/functions/fish_user_key_bindings.fish | 1 - fish/.config/fish/functions/insult.fish | 3 --- fish/.config/fish/functions/pubtr.fish | 1 - fish/.config/fish/functions/rm.fish | 3 --- fish/.config/fish/functions/ssys.fish | 3 --- fish/.config/fish/functions/tag.fish | 4 ---- fish/.config/fish/functions/tildefig.fish | 4 ---- fish/.config/fish/functions/tilderadio.fish | 3 --- 13 files changed, 8 insertions(+), 31 deletions(-) create mode 100644 fish/.config/fish/conf.d/fnm.fish create mode 100644 fish/.config/fish/conf.d/uv.env.fish delete mode 100644 fish/.config/fish/functions/anonradio.fish create mode 100644 fish/.config/fish/functions/ddg.fish delete mode 100644 fish/.config/fish/functions/fish_greeting.fish delete mode 100644 fish/.config/fish/functions/insult.fish delete mode 100644 fish/.config/fish/functions/rm.fish delete mode 100644 fish/.config/fish/functions/ssys.fish delete mode 100644 fish/.config/fish/functions/tag.fish delete mode 100644 fish/.config/fish/functions/tildefig.fish delete mode 100644 fish/.config/fish/functions/tilderadio.fish diff --git a/fish/.config/fish/conf.d/fnm.fish b/fish/.config/fish/conf.d/fnm.fish new file mode 100644 index 0000000..d8d7596 --- /dev/null +++ b/fish/.config/fish/conf.d/fnm.fish @@ -0,0 +1,3 @@ +# fnm +set PATH "/home/ben/.local/share/fnm" $PATH +fnm env | source diff --git a/fish/.config/fish/conf.d/uv.env.fish b/fish/.config/fish/conf.d/uv.env.fish new file mode 100644 index 0000000..cabfa80 --- /dev/null +++ b/fish/.config/fish/conf.d/uv.env.fish @@ -0,0 +1,2 @@ + +source "$HOME/.cargo/env.fish" diff --git a/fish/.config/fish/functions/anonradio.fish b/fish/.config/fish/functions/anonradio.fish deleted file mode 100644 index 2d6766b..0000000 --- a/fish/.config/fish/functions/anonradio.fish +++ /dev/null @@ -1,3 +0,0 @@ -function anonradio - nvlc http://anonradio.net:8000/anonradio -end diff --git a/fish/.config/fish/functions/ddg.fish b/fish/.config/fish/functions/ddg.fish new file mode 100644 index 0000000..88c05a4 --- /dev/null +++ b/fish/.config/fish/functions/ddg.fish @@ -0,0 +1,3 @@ +function ddg + lynx "https://lite.duckduckgo.com/lite/?q=$(string escape --style=url $argv)" +end diff --git a/fish/.config/fish/functions/fish_greeting.fish b/fish/.config/fish/functions/fish_greeting.fish deleted file mode 100644 index ed2f6f7..0000000 --- a/fish/.config/fish/functions/fish_greeting.fish +++ /dev/null @@ -1,6 +0,0 @@ -function fish_greeting - if test -f /var/run/motd - /bin/cat /var/run/motd - end -end - diff --git a/fish/.config/fish/functions/fish_user_key_bindings.fish b/fish/.config/fish/functions/fish_user_key_bindings.fish index 73037da..8fbf758 100644 --- a/fish/.config/fish/functions/fish_user_key_bindings.fish +++ b/fish/.config/fish/functions/fish_user_key_bindings.fish @@ -1,4 +1,3 @@ function fish_user_key_bindings fzf_key_bindings - bind \co 'lfcd; commandline -f repaint' end diff --git a/fish/.config/fish/functions/insult.fish b/fish/.config/fish/functions/insult.fish deleted file mode 100644 index 60e3fb5..0000000 --- a/fish/.config/fish/functions/insult.fish +++ /dev/null @@ -1,3 +0,0 @@ -function insult - shuf -n1 ~/insults.txt -end diff --git a/fish/.config/fish/functions/pubtr.fish b/fish/.config/fish/functions/pubtr.fish index 9e555eb..716da37 100644 --- a/fish/.config/fish/functions/pubtr.fish +++ b/fish/.config/fish/functions/pubtr.fish @@ -1,4 +1,3 @@ -# Defined in /tmp/fish.Fo1L3P/pubtr.fish @ line 1 function pubtr mtr -wrc4 $argv[1] > ~/pub/mtr/"$argv[1]".txt echo https://bhh.sh/pub/mtr/$argv[1].txt diff --git a/fish/.config/fish/functions/rm.fish b/fish/.config/fish/functions/rm.fish deleted file mode 100644 index c7860cc..0000000 --- a/fish/.config/fish/functions/rm.fish +++ /dev/null @@ -1,3 +0,0 @@ -function rm - command rm -I $argv -end diff --git a/fish/.config/fish/functions/ssys.fish b/fish/.config/fish/functions/ssys.fish deleted file mode 100644 index 71fa1d3..0000000 --- a/fish/.config/fish/functions/ssys.fish +++ /dev/null @@ -1,3 +0,0 @@ -function ssys - sudo systemctl $args -end diff --git a/fish/.config/fish/functions/tag.fish b/fish/.config/fish/functions/tag.fish deleted file mode 100644 index a16359c..0000000 --- a/fish/.config/fish/functions/tag.fish +++ /dev/null @@ -1,4 +0,0 @@ -function tag - shuf -n 1 ~/taglines.txt -end - diff --git a/fish/.config/fish/functions/tildefig.fish b/fish/.config/fish/functions/tildefig.fish deleted file mode 100644 index fbff0b3..0000000 --- a/fish/.config/fish/functions/tildefig.fish +++ /dev/null @@ -1,4 +0,0 @@ -function tildefig - curl "https://tilde.team/~ben/api/?font=slant&text="$argv -end - diff --git a/fish/.config/fish/functions/tilderadio.fish b/fish/.config/fish/functions/tilderadio.fish deleted file mode 100644 index 6f9123e..0000000 --- a/fish/.config/fish/functions/tilderadio.fish +++ /dev/null @@ -1,3 +0,0 @@ -function tilderadio - nvlc https://radio.tildeverse.org/radio/8000/radio.ogg -end