[MINOR] fish replaced functions with abbr
This commit is contained in:
parent
5c4604cd41
commit
1b4603b394
5 changed files with 9 additions and 54 deletions
|
@ -14,6 +14,6 @@ fish_add_path $HOME/.ghcup/bin
|
||||||
|
|
||||||
source ~/.config/fish/myfunctions/code.fish
|
source ~/.config/fish/myfunctions/code.fish
|
||||||
source ~/.config/fish/myfunctions/dotfiles.fish
|
source ~/.config/fish/myfunctions/dotfiles.fish
|
||||||
source ~/.config/fish/myfunctions/packages.fish
|
source ~/.config/fish/myfunctions/pacman.fish
|
||||||
source ~/.config/fish/myfunctions/qol.fish
|
source ~/.config/fish/myfunctions/qol.fish
|
||||||
source ~/.config/fish/myfunctions/replacements.fish
|
source ~/.config/fish/myfunctions/replacements.fish
|
||||||
|
|
|
@ -2,9 +2,6 @@ function config
|
||||||
/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $argv
|
/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
function lazyconfig
|
abbr -a lc "lazygit --git-dir=$HOME/dotfiles/ --work-tree=$HOME/"
|
||||||
lazygit --git-dir=$HOME/dotfiles/ --work-tree=$HOME/ $argv
|
|
||||||
end
|
|
||||||
alias lc=lazyconfig
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
function i
|
|
||||||
sudo pacman -S $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
function zi
|
|
||||||
sudo zypper install $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
function s
|
|
||||||
sudo pacman -Ss $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
function zs
|
|
||||||
sudo zypper search $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
function u
|
|
||||||
sudo pacman -Syu
|
|
||||||
end
|
|
||||||
|
|
||||||
function zu
|
|
||||||
sudo zypper refresh && sudo zypper update
|
|
||||||
end
|
|
||||||
|
|
||||||
function r
|
|
||||||
sudo pacman -Rns $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
function zr
|
|
||||||
sudo zypper remove $argv
|
|
||||||
end
|
|
||||||
|
|
|
@ -1,16 +1,5 @@
|
||||||
function i
|
abbr -a i sudo pacman -S
|
||||||
sudo pacman -S $argv
|
abbr -a s sudo pacman -Ss
|
||||||
end
|
abbr -a u sudo pacman -Syu
|
||||||
|
abbr -a r sudo pacman -Rns
|
||||||
function s
|
|
||||||
sudo pacman -Ss $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
function u
|
|
||||||
sudo pacman -Syu
|
|
||||||
end
|
|
||||||
|
|
||||||
function r
|
|
||||||
sudo pacman -Rns $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
function ls
|
function ls
|
||||||
exa --icons -l $argv
|
exa --icons -l $argv
|
||||||
end
|
end
|
||||||
alias find=fd
|
abbr -a find fd
|
||||||
alias df=duf
|
abbr -a df duf
|
||||||
|
abbr -a v nvim
|
||||||
function rm
|
function rm
|
||||||
echo "rm is disabled, use trash instead"
|
echo "rm is disabled, use trash instead"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue