Update kitty bg color, nvim config. Add bgcolor function in zshrc for set specific bg color, hot keys for archiving in vifm

This commit is contained in:
Smirnov Olexandr 2020-12-13 20:52:29 +02:00
parent f5a07cf3b0
commit 4f7f44d7f4
10 changed files with 91 additions and 42 deletions

4
bin/arch_upd Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
sudo pacman -Syyuu --noconfirm
yay -Sua --noconfirm
sudo pacman -Rs $(pacman -Qdtq) --noconfirm

18
bin/extract Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
case "$1" in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*.deb) ar x $1 ;;
*.tar.xz) tar xf $1 ;;
*.tar.zst) unzstd $1 ;;
*) echo "'$1' is not a valid file" ;;
esac

35
bin/giti Executable file
View file

@ -0,0 +1,35 @@
#!/bin/sh
add() {
local file="$1"
echo $file >> .gitignore
}
del() {
local file="$1"
sed -i "/$file/d" .gitignore
}
edit() {
local oldname="$1"
local newanme="$2"
sed -in "s|$oldname|$newanme|g" .gitignore
}
show() {
if [ -f '/usr/bin/bat' ]
then
bat .gitignore
else
cat .gitignore
fi
}
case "$1" in
add|a) shift; add "$@" ;;
del|d) shift; del "$@" ;;
mv) shift; edit "$@" ;;
show|s) shift; show ;;
help) echo "add/a - filename add to ignore"
echo "del/d - filename del from ignore"
echo "mv - oldname newname chage file name"
echo "show - show ignore file"
;;
*) echo "Command is not valid"
esac

6
bin/kbhl Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
case "$1" in
"on"|"-on"|"--on"|1) xset led on ;;
"off"|"-off"|"--off"|0) xset led off ;;
esac