chore(fish): simplified fish config to be the "same" as my zsh config
This commit is contained in:
parent
4933308689
commit
e0b9a10150
34 changed files with 176 additions and 1188 deletions
39
.config/fish/conf.d/myfunctions.fish
Normal file
39
.config/fish/conf.d/myfunctions.fish
Normal file
|
@ -0,0 +1,39 @@
|
|||
function vim
|
||||
if test -z "$argv"
|
||||
if test -f "./.session.vim"
|
||||
nvim -S .session.vim -c 'lua vim.g.savesession = true'
|
||||
else
|
||||
nvim -c 'lua vim.g.savesession = true'
|
||||
end
|
||||
else
|
||||
nvim $argv
|
||||
end
|
||||
end
|
||||
|
||||
function routevpn
|
||||
sudo route -n add $argv 10.8.0.1
|
||||
end
|
||||
|
||||
# Aliases
|
||||
alias ls="eza --icons -l --sort type"
|
||||
alias lg="lazygit"
|
||||
alias routes="netstat -rn -f inet"
|
||||
alias lc="lazygit --work-tree=$HOME --git-dir=$HOME/dotfiles"
|
||||
alias config="git --work-tree=$HOME --git-dir=$HOME/dotfiles"
|
||||
alias nvim_update='nvim --headless "+Lazy! sync" +qa'
|
||||
|
||||
function qmk_flash_right
|
||||
echo "Flashing right side, waiting 5 seconds"
|
||||
sleep 5
|
||||
qmk flash -kb lily58 -km afonso -bl avrdude-split-right
|
||||
end
|
||||
|
||||
function qmk_flash_left
|
||||
echo "Flashing left side, waiting 5 seconds"
|
||||
sleep 5
|
||||
qmk flash -kb lily58 -km afonso -bl avrdude-split-left
|
||||
end
|
||||
|
||||
function cd
|
||||
builtin cd $argv; and ls
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue