[Fish] update
This commit is contained in:
17
.config/fish/completions/pipx.fish
Normal file
17
.config/fish/completions/pipx.fish
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
function __fish_pipx_complete
|
||||||
|
set -x _ARGCOMPLETE 1
|
||||||
|
set -x _ARGCOMPLETE_DFS \t
|
||||||
|
set -x _ARGCOMPLETE_IFS \n
|
||||||
|
set -x _ARGCOMPLETE_SUPPRESS_SPACE 1
|
||||||
|
set -x _ARGCOMPLETE_SHELL fish
|
||||||
|
set -x COMP_LINE (commandline -p)
|
||||||
|
set -x COMP_POINT (string length (commandline -cp))
|
||||||
|
set -x COMP_TYPE
|
||||||
|
if set -q _ARC_DEBUG
|
||||||
|
pipx 8>&1 9>&2 1>&9 2>&1
|
||||||
|
else
|
||||||
|
pipx 8>&1 9>&2 1>/dev/null 2>&1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
complete --command pipx -f -a '(__fish_pipx_complete)'
|
@@ -1,46 +1,31 @@
|
|||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
set -gx PAGER less
|
set -gx PAGER less
|
||||||
# set -Ux BAT_THEME gruvbox
|
|
||||||
set -Ux MANPAGER "nvim +Man!"
|
set -Ux MANPAGER "nvim +Man!"
|
||||||
|
# set -gx BAT_THEME "Catppuccin Mocha"
|
||||||
|
## functions
|
||||||
set -g fish_greeting
|
set -g fish_greeting
|
||||||
set -g fish_cursor_insert line
|
set -g fish_cursor_insert line
|
||||||
set -g fish_cursor_default block
|
set -g fish_cursor_default block
|
||||||
set -g fish_cursor_visual underscore
|
set -g fish_cursor_visual underscore
|
||||||
set -g fish_user_key_bindings
|
set -g fish_user_key_bindings
|
||||||
|
set -g askllama
|
||||||
set -g ask
|
set -g ask
|
||||||
|
set -g sshf
|
||||||
|
set -g tuis
|
||||||
|
|
||||||
set -gx PNPM_HOME "/home/coja/.local/share/pnpm"
|
|
||||||
if not string match -q -- $PNPM_HOME $PATH
|
|
||||||
set -gx PATH "$PNPM_HOME" $PATH
|
|
||||||
end
|
|
||||||
|
|
||||||
#set -xU MANPAGER 'less -R --use-color -Dd+r -Du+b'
|
|
||||||
#set -xU MANROFFOPT '-P -c'
|
|
||||||
|
|
||||||
alias grep="grep --color=auto"
|
|
||||||
alias fzf="fzf --preview color='always {}'"
|
|
||||||
alias pacs="sudo pacman -Syu"
|
|
||||||
alias nmaps="sudo nmap -sn 192.168.0.0/24"
|
|
||||||
alias mem="df -H --output=source,size,used,avail | grep 480G | sort -u"
|
|
||||||
alias kittyimg="kitten icat"
|
|
||||||
alias dmz="cat ~/.config/fish/dmz.txt"
|
alias dmz="cat ~/.config/fish/dmz.txt"
|
||||||
alias xremaps="sudo xremap ~/.config/xremap/config.yml"
|
alias matrix="~/projects/random-clones/matrix/matrix"
|
||||||
# alias llama="~/projects/llama.cpp/build/bin/llama-server -m /home/anon/projects/llama.cpp/models/Llama-3.2-3B-Instruct-F16.gguf"
|
|
||||||
alias cdots="cd ~/.dotfiles/.config/"
|
|
||||||
alias dots="cd ~/.dotfiles/.config/ && nvim"
|
|
||||||
alias keybinds="cd ~/.dotfiles/.config/ && nvim ./hypr/keybindings.conf"
|
|
||||||
alias aliases="bat ~/.config/fish/config.fish"
|
|
||||||
alias notes="cd ~/sync/notes && nvim"
|
|
||||||
alias ipadd="sudo ip route add 192.168.0.1 dev wg0"
|
|
||||||
alias copy="wl-copy"
|
|
||||||
alias current="cd ~/projects/wingman/website/ && nvim"
|
|
||||||
|
|
||||||
# List Directory
|
# LLMs
|
||||||
alias ls="lsd"
|
alias codellamasrv=" ~/projects/llama.cpp/build/bin/llama-server -m ~/projects/llama.cpp/models/codellama"
|
||||||
alias l="ls -l"
|
alias llama3-web="~/projects/llama.cpp/build/bin/llama-server -m ~/projects/llama.cpp/models/llama3"
|
||||||
alias la="ls -a"
|
alias llama3=" ~/projects/llama.cpp/build/bin/llama-cli -m ~/projects/llama.cpp/models/llama3"
|
||||||
alias lla="ls -la"
|
alias llama=" ~/projects/llama.cpp/build/bin/llama-run"
|
||||||
alias lt="ls --tree"
|
|
||||||
|
# Shorts
|
||||||
|
alias fzf="fzf --preview color='always {}'"
|
||||||
|
alias grep="grep --color=auto"
|
||||||
|
alias cat="vimcat"
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
alias gs="git status"
|
alias gs="git status"
|
||||||
@@ -50,6 +35,34 @@ alias gl="git log --graph --show-signature"
|
|||||||
alias gla="git log --all --decorate --oneline --graph"
|
alias gla="git log --all --decorate --oneline --graph"
|
||||||
alias gm="git merge"
|
alias gm="git merge"
|
||||||
|
|
||||||
|
# List Directory
|
||||||
|
alias ls="lsd"
|
||||||
|
alias l="ls -l"
|
||||||
|
alias la="ls -a"
|
||||||
|
alias lla="ls -la"
|
||||||
|
alias lt="ls --tree"
|
||||||
|
|
||||||
|
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 copy "wl-copy"
|
||||||
|
abbr img "kitten icat"
|
||||||
|
abbr fm "yazi" ## file manager
|
||||||
|
abbr lg "lazygit"
|
||||||
|
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 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'
|
||||||
|
abbr aliases "bat ~/.config/fish/config.fish"
|
||||||
|
abbr tts "tt -notheme -bold -showwpm -json"
|
||||||
|
|
||||||
# Handy change dir shortcuts
|
# Handy change dir shortcuts
|
||||||
abbr .. "cd .."
|
abbr .. "cd .."
|
||||||
abbr ... "cd ../.."
|
abbr ... "cd ../.."
|
||||||
@@ -57,13 +70,10 @@ abbr .3 "cd ../../.."
|
|||||||
abbr .4 "cd ../../../.."
|
abbr .4 "cd ../../../.."
|
||||||
abbr .5 "cd ../../../../.."
|
abbr .5 "cd ../../../../.."
|
||||||
|
|
||||||
# Always mkdir a path (this doesn't inhibit functionality to make a single dir)
|
|
||||||
abbr mkdir "mkdir -p"
|
|
||||||
|
|
||||||
abbr pwwa "~/projects/wingman/website/src/assets/"
|
|
||||||
abbr scrp "~/projects/scripts/"
|
|
||||||
|
|
||||||
zoxide init --cmd cd fish | source
|
zoxide init --cmd cd fish | source
|
||||||
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
|
||||||
|
|
||||||
|
# Created by `pipx` on 2025-05-31 20:14:06
|
||||||
|
set PATH $PATH /home/anon/.local/bin
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
# This file contains fish universal variable definitions.
|
# This file contains fish universal variable definitions.
|
||||||
# VERSION: 3.0
|
# VERSION: 3.0
|
||||||
SETUVAR --export BAT_THEME:gruvbox
|
|
||||||
SETUVAR --export EDITOR:nvim
|
SETUVAR --export EDITOR:nvim
|
||||||
SETUVAR --export MANPAGER:nvim\x20\x2bMan\x21
|
SETUVAR --export MANPAGER:nvim\x20\x2bMan\x21
|
||||||
SETUVAR --export MANROFFOPT:\x2dP\x20\x2dc
|
SETUVAR --export MANROFFOPT:\x2dP\x20\x2dc
|
||||||
|
3
.config/fish/functions/askllama.fish
Normal file
3
.config/fish/functions/askllama.fish
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function askllama --description 'answer from llama'
|
||||||
|
~/projects/llama.cpp/build/bin/llama-run ~/projects/llama.cpp/models/llama3 $(string join '+' $argv[1..])
|
||||||
|
end
|
3
.config/fish/functions/sshf.fish
Normal file
3
.config/fish/functions/sshf.fish
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function sshf --description 'fzf select for ssh hosts'
|
||||||
|
ssh $(grep Host -w .ssh/config | awk '{print $2}' | fzf)
|
||||||
|
end
|
3
.config/fish/functions/tuis.fish
Normal file
3
.config/fish/functions/tuis.fish
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function tuis --description 'fzf select tui'
|
||||||
|
eval (string split "\n" (cat ".dotfiles/tuis.txt") | fzf)
|
||||||
|
end
|
Reference in New Issue
Block a user