shell: zsh -> fish

This commit is contained in:
2023-07-08 15:20:42 +03:00
parent c64512f398
commit fdb22d868d
21 changed files with 75 additions and 120 deletions

11
.config/fish/config.fish Normal file
View File

@ -0,0 +1,11 @@
set fish_greeting
fish_add_path $HOME/.local/bin:$PATH
fish_add_path $HOME/.local/share/cargo/bin:$PATH
fish_add_path $HOME/.local/share/go/bin:$PATH
fish_add_path $HOME/.local/share/npm/bin:$PATH
fish_add_path $HOME/tools/nvim:$PATH
fish_add_path $HOME/.config/scripts/applications:$PATH
fish_add_path $HOME/.config/scripts/util:$PATH
fish_add_path xterm # for ssh
set EDITOR nvim

View File

@ -0,0 +1,4 @@
function .... --wraps='cd ../../..' --description 'alias ....=cd ../../..'
cd ../../.. $argv
end

View File

@ -0,0 +1,4 @@
function ... --wraps='cd ../..' --description 'alias ...=cd ../..'
cd ../.. $argv
end

View File

@ -0,0 +1,4 @@
function .. --description 'alias ..=cd ..'
cd .. $argv
end

View File

@ -0,0 +1,4 @@
function c --wraps=clear --description 'alias c=clear'
clear $argv
end

View File

@ -0,0 +1,4 @@
function cl --wraps='clear && ls' --description 'alias cl=clear && ls'
clear && ls $argv
end

View File

@ -0,0 +1,4 @@
function cll --wraps='clear && ls -lah' --description 'alias cll=clear && ls -lah'
clear && ls -lah $argv
end

View File

@ -0,0 +1,4 @@
function dots --wraps='/usr/bin/git --git-dir=$HOME/docs/git/dotfiles.git --work-tree=$HOME' --description 'alias dots=/usr/bin/git --git-dir=$HOME/docs/git/dotfiles.git --work-tree=$HOME'
/usr/bin/git --git-dir=$HOME/docs/git/dotfiles.git --work-tree=$HOME $argv
end

View File

@ -0,0 +1,4 @@
function fzfcd --wraps='source ~/.config/scripts/util/cdfzf' --description 'alias fzfcd=source ~/.config/scripts/util/cdfzf'
source ~/.config/scripts/util/cdfzf $argv
end

View File

@ -0,0 +1,4 @@
function grep --description 'alias grep=grep --color=auto'
command grep --color=auto $argv
end

View File

@ -0,0 +1,4 @@
function hc --wraps=herbstclient --description 'alias hc=herbstclient'
herbstclient $argv
end

View File

@ -0,0 +1,4 @@
function ll --wraps='ls -lah' --description 'alias ll=ls -lah'
ls -lah $argv
end

View File

@ -0,0 +1,4 @@
function n --wraps=nvim --description 'alias n=nvim'
nvim $argv
end

View File

@ -0,0 +1,4 @@
function oomox-wal --wraps='oomox-cli -o wal -t ~/.local/share/themes ~/.cache/wal/colors-oomox' --description 'alias oomox-wal=oomox-cli -o wal -t ~/.local/share/themes ~/.cache/wal/colors-oomox'
oomox-cli -o wal -t ~/.local/share/themes ~/.cache/wal/colors-oomox $argv
end

View File

@ -0,0 +1,4 @@
function pm --wraps=pulsemixer --description 'alias pm=pulsemixer'
pulsemixer $argv
end

View File

@ -0,0 +1,4 @@
function py --wraps=python --description 'alias py=python'
python $argv
end

View File

@ -0,0 +1,4 @@
function yeet --wraps='pikaur -Rsn' --description 'alias yeet=pikaur -Rsn'
pikaur -Rsn $argv
end