From aa67f56276bf77dcada342f766b2bb718fe44d16 Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Fri, 30 Oct 2026 19:57:44 -0500 Subject: [PATCH] fish: remove unused functions --- .config/fish/functions/buku.fish | 10 --------- .config/fish/functions/conda.fish | 10 --------- .config/fish/functions/nnn.fish | 34 ----------------------------- .config/fish/functions/todo.sh.fish | 7 ------ .config/fish/functions/weechat.fish | 9 -------- 5 files changed, 70 deletions(-) delete mode 100644 .config/fish/functions/buku.fish delete mode 100644 .config/fish/functions/conda.fish delete mode 100644 .config/fish/functions/nnn.fish delete mode 100644 .config/fish/functions/todo.sh.fish delete mode 100644 .config/fish/functions/weechat.fish diff --git a/.config/fish/functions/buku.fish b/.config/fish/functions/buku.fish deleted file mode 100644 index 07e617c9..00000000 --- a/.config/fish/functions/buku.fish +++ /dev/null @@ -1,10 +0,0 @@ -function buku - set -q BUKU_COLORS; or set -Ux BUKU_COLORS "gCdxe" - - if test (count $argv) -eq 0 - command buku - else - command buku --suggest $argv - end -end - diff --git a/.config/fish/functions/conda.fish b/.config/fish/functions/conda.fish deleted file mode 100644 index 1c6e0d1e..00000000 --- a/.config/fish/functions/conda.fish +++ /dev/null @@ -1,10 +0,0 @@ -function conda -d "Lazy load conda" - functions -e conda - if command -sq conda - source (command conda info --root)/etc/fish/conf.d/conda.fish - conda $argv - else - fish_command_not_found conda - return 127 - end -end diff --git a/.config/fish/functions/nnn.fish b/.config/fish/functions/nnn.fish deleted file mode 100644 index d6bc788d..00000000 --- a/.config/fish/functions/nnn.fish +++ /dev/null @@ -1,34 +0,0 @@ -function nnn --description "Alias for nnn" - if test -n "$XDG_CONFIG_HOME" - set nnn_config_dir $XDG_CONFIG_HOME/nnn - else - set nnn_config_dir $HOME/.config/nnn - end - - # Filetype colors. This mimics dircolors - set -x NNN_FCOLORS 030304020000060801030500 - - set -x NNN_PLUG p:preview-tui - - if test -x $nnn_config_dir/plugins/nuke - set -x NNN_OPENER $nnn_config_dir/plugins/nuke - set -x NNN_OPTS "$NNN_OPTS"c - end - - # Block nesting of nnn in subshells - if test -n "$NNNLVL" - if test (expr $NNNLVL + 0) -ge 1 - echo 'nnn is already running' - return - end - end - - set NNN_TMPFILE $nnn_config_dir/.lastd - - command nnn -a -e $argv - - if test -e $NNN_TMPFILE - source $NNN_TMPFILE - rm $NNN_TMPFILE - end -end diff --git a/.config/fish/functions/todo.sh.fish b/.config/fish/functions/todo.sh.fish deleted file mode 100644 index f2c7fbfa..00000000 --- a/.config/fish/functions/todo.sh.fish +++ /dev/null @@ -1,7 +0,0 @@ -function todo.sh -d "Alias for todo.sh with custom config file location" - if test (count $argv) -eq 0 - set argv ls - end - command todo.sh -d ~/.config/todo/config -c -n $argv -end - diff --git a/.config/fish/functions/weechat.fish b/.config/fish/functions/weechat.fish deleted file mode 100644 index b8ef6aa4..00000000 --- a/.config/fish/functions/weechat.fish +++ /dev/null @@ -1,9 +0,0 @@ -function weechat - # Set $HOSTNAME to use in username - set -gx HOSTNAME (hostname) - - # Needed to update scripts list on macOS (https://weechat.org/files/doc/devel/weechat_faq.en.html#scripts_update) - set -gx OBJC_DISABLE_INITIALIZE_FORK_SAFETY YES - - command weechat $argv -end -- knotmirror 0.0.1