mirror of
https://github.com/xHyroM/dotfiles.git
synced 2024-12-22 12:11:07 +01:00
pacman ru, +x bin
This commit is contained in:
parent
0f699b6542
commit
2a88cdbcc8
2 changed files with 16 additions and 0 deletions
8
.local/bin/+x
Executable file
8
.local/bin/+x
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
# +x [file]
|
||||
# make a file executable
|
||||
if [ -z "$1" ]; then
|
||||
echo "usage: +x [file]"
|
||||
exit 1
|
||||
fi
|
||||
chmod +x $@
|
8
.zshrc
8
.zshrc
|
@ -101,3 +101,11 @@ source $ZSH/oh-my-zsh.sh
|
|||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
alias cat="bat" # use bat - https://github.com/sharkdp/bat
|
||||
alias ssh="kitty +kitten ssh"
|
||||
|
||||
function pacman {
|
||||
if [[ $1 == "ru" ]]; then
|
||||
command pacman -Qtdq | sudo pacman -Rns -
|
||||
else
|
||||
command pacman "$@"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue