pacman ru, +x bin

This commit is contained in:
Jozef Steinhübl 2023-08-15 10:08:37 +02:00
parent 0f699b6542
commit 2a88cdbcc8
2 changed files with 16 additions and 0 deletions

8
.local/bin/+x Executable file
View 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
View file

@ -101,3 +101,11 @@ source $ZSH/oh-my-zsh.sh
# alias ohmyzsh="mate ~/.oh-my-zsh" # alias ohmyzsh="mate ~/.oh-my-zsh"
alias cat="bat" # use bat - https://github.com/sharkdp/bat alias cat="bat" # use bat - https://github.com/sharkdp/bat
alias ssh="kitty +kitten ssh" alias ssh="kitty +kitten ssh"
function pacman {
if [[ $1 == "ru" ]]; then
command pacman -Qtdq | sudo pacman -Rns -
else
command pacman "$@"
fi
}