Add fish config
This commit is contained in:
@@ -0,0 +1,66 @@
|
|||||||
|
alias .="cd ."
|
||||||
|
alias ..="cd .."
|
||||||
|
alias ...="cd ../.."
|
||||||
|
alias ....="cd ../../.."
|
||||||
|
alias .....="cd ../../../.."
|
||||||
|
alias ......="cd ../../../../../.."
|
||||||
|
alias py="python3"
|
||||||
|
alias ls="eza -TlL 2 --git --no-permissions --no-user --no-time --icons=always --group-directories-first"
|
||||||
|
alias lss="eza -TlL 1 --git --no-permissions --no-user --no-time --icons=always --group-directories-first"
|
||||||
|
alias lsa="eza -TlaL 1 --git --no-permissions --no-user --no-time --icons=always --group-directories-first"
|
||||||
|
alias sls="sudo eza -TlL 2 --git --no-permissions --no-user --no-time --icons=always --group-directories-first"
|
||||||
|
alias s="python3 -m http.server 8080"
|
||||||
|
alias pipes.sh="pipes-rs -d 1 -r 0 -b true -p 1 -t 0.5"
|
||||||
|
alias vi="nvim"
|
||||||
|
alias vim="nvim"
|
||||||
|
alias stow="stow --dotfiles"
|
||||||
|
alias :q="exit"
|
||||||
|
alias :qa="exit"
|
||||||
|
alias :Q="exit"
|
||||||
|
|
||||||
|
set fish_greeting
|
||||||
|
|
||||||
|
set -Ux EDITOR nvim
|
||||||
|
set -Ux VISUAL nvim
|
||||||
|
|
||||||
|
function a
|
||||||
|
for arg in $argv
|
||||||
|
if string match -q '*/' $arg
|
||||||
|
mkdir -p $arg
|
||||||
|
else
|
||||||
|
mkdir -p (dirname $arg)
|
||||||
|
touch $arg
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
function y
|
||||||
|
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||||
|
yazi $argv --cwd-file="$tmp"
|
||||||
|
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||||
|
builtin cd -- "$cwd"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
function g
|
||||||
|
if not set -q NVIM
|
||||||
|
magick -size 2304x1296 xc:#0f0f1f /tmp/bg-kitty.png
|
||||||
|
kitty @ --to=$KITTY_LISTEN_ON set-background-image /tmp/bg-kitty.png
|
||||||
|
kitty @ --to=$KITTY_LISTEN_ON set-spacing padding=30 margin=0
|
||||||
|
end
|
||||||
|
gitui
|
||||||
|
if not set -q NVIM
|
||||||
|
magick -size 2304x1296 xc:#080014 /tmp/bg-kitty.png
|
||||||
|
kitty @ --to=$KITTY_LISTEN_ON set-background-image /tmp/bg-kitty.png
|
||||||
|
kitty @ --to=$KITTY_LISTEN_ON set-spacing padding=8 margin=0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
function editor
|
||||||
|
set pos (cat ~/dotfiles/.pos)
|
||||||
|
y $pos
|
||||||
|
if test -e ./p.vim
|
||||||
|
nvim -S ./p.vim
|
||||||
|
end
|
||||||
|
echo $PWD > ~/dotfiles/.pos
|
||||||
|
end
|
||||||
|
|
||||||
|
# Created by `pipx` on 2025-07-15 19:25:29
|
||||||
|
set PATH $PATH /home/syed/.local/bin
|
||||||
Reference in New Issue
Block a user