mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
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:
parent
f5a07cf3b0
commit
4f7f44d7f4
10 changed files with 91 additions and 42 deletions
35
bin/giti
Executable file
35
bin/giti
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue