From bd6f2cd612ff4a419ef538fd62b34bd4b173b384 Mon Sep 17 00:00:00 2001 From: coja Date: Sun, 31 Aug 2025 00:14:44 +0200 Subject: [PATCH] [Fish] updates --- .config/fish/config.fish | 6 ++-- .../functions/fish_user_key_bindings.fish | 2 ++ .config/fish/functions/sshf.fish | 2 +- .config/fish/functions/tuis.fish | 2 +- tuis.txt | 34 +++++++++++++++++++ 5 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 tuis.txt diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 2d083ae..a658435 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -15,6 +15,7 @@ set -g tuis alias dmz="cat ~/.config/fish/dmz.txt" alias matrix="~/projects/random-clones/matrix/matrix" +alias nmatrix="neo-matrix -DS 3" # LLMs alias codellamasrv=" ~/projects/llama.cpp/build/bin/llama-server -m ~/projects/llama.cpp/models/codellama" @@ -46,7 +47,7 @@ alias cdots="cd ~/.dotfiles/.config/" alias cpnotes="cd ~/sync/PersonalNotes/" abbr dots "cdots && nvim" abbr pnotes "cpnotes && nvim" -abbr todo "cpnotes && nvim ToDo.md" +abbr todo "cpnotes && nvim ToDoNext.md" abbr copy "wl-copy" abbr img "kitten icat" @@ -56,7 +57,8 @@ abbr mkdir "mkdir -p" abbr faillock "sudo faillock --reset" abbr ipadd "sudo ip route add 192.168.0.234 dev wg0" abbr xremaps "sudo xremap ~/.config/xremap/config.yml" -abbr pacs "sudo pacman -Syu" +abbr pacs "sudo pacman -Syu --noconfirm" +abbr yays "yay --noconfirm --sudoloop" abbr nmaps "sudo nmap -sn 192.168.0.0/24" abbr scrcpyc 'scrcpy -wSK -m 1920 --window-borderless --always-on-top --power-off-on-close' abbr scrcpys 'scrcpy -wS --power-off-on-close' diff --git a/.config/fish/functions/fish_user_key_bindings.fish b/.config/fish/functions/fish_user_key_bindings.fish index 1c74db0..19c75b2 100644 --- a/.config/fish/functions/fish_user_key_bindings.fish +++ b/.config/fish/functions/fish_user_key_bindings.fish @@ -5,4 +5,6 @@ function fish_user_key_bindings bind -M default ctrl-e end-of-line bind -M insert ctrl-space accept-autosuggestion bind -M insert ctrl-g 'git diff' repaint + bind -M insert ctrl-o execute yazi + bind -M insert ctrl-l clear-screen ls repaint end diff --git a/.config/fish/functions/sshf.fish b/.config/fish/functions/sshf.fish index 8497d00..479575a 100644 --- a/.config/fish/functions/sshf.fish +++ b/.config/fish/functions/sshf.fish @@ -1,3 +1,3 @@ function sshf --description 'fzf select for ssh hosts' - ssh $(grep Host -w .ssh/config | awk '{print $2}' | fzf) + ssh $(grep Host -w ~/.ssh/config | awk '{print $2}' | fzf --preview="echo" --preview-border="none") end diff --git a/.config/fish/functions/tuis.fish b/.config/fish/functions/tuis.fish index f60fade..f11f3e8 100644 --- a/.config/fish/functions/tuis.fish +++ b/.config/fish/functions/tuis.fish @@ -1,3 +1,3 @@ function tuis --description 'fzf select tui' - eval (string split "\n" (cat ".dotfiles/tuis.txt") | fzf) + eval (string split "\n" (cat $HOME/.dotfiles/tuis.txt) | fzf) end diff --git a/tuis.txt b/tuis.txt new file mode 100644 index 0000000..cbb0870 --- /dev/null +++ b/tuis.txt @@ -0,0 +1,34 @@ +browsh +wiki-tui +wikiman +yazi +tdf +dysk +dust +ncdu +systemctl-tui +btop +bandwhich +mtr +gping +bmon +profanity +nmtui +bluetui +lazygit +lazydocker +lazyjorunal +oatmeal +tt +pastel +hexyl +tmux +zellij +nvim +vim +tetrigo +pyradio +kew +matrix +cava +