Added alacitty, github-cli, updated zsh, vscode, README, deleted not used configs

This commit is contained in:
neoteny 2021-11-28 22:27:23 +02:00
parent 08e75ea6e9
commit 02491dec2c
24 changed files with 145 additions and 640 deletions

View file

@ -1,42 +0,0 @@
#!/bin/sh
function add() {
echo $1 >> .gitignore
echo "[.gitignore] Successful add '$1'."
}
function del() {
if [ -f '.gitignore' ]; then
if [ "$(cat .gitignore|wc -l)" = "1" ]
then rm .gitignore
else sed -i "/$1/d" .gitignore
fi
else echo "[.gitignore] File not found."
fi
echo "[.gitignore] Successful del '$1'."
}
function edit() {
sed -in "s|$1|$2|g" .gitignore
}
function show() {
if [ -f '.gitignore' ]; then
if [ -f '/usr/bin/bat' ]
then bat .gitignore
else cat .gitignore
fi
else echo "[.gitignore] File not found."
fi
}
case "$1" in
add|a) shift; add "$@" ;;
del|d) shift; del "$@" ;;
mv|m) shift; edit "$@" ;;
show) shift; show ;;
help) echo "add|a - [file name] add to ignore."
echo "del|d - [file name] delete from ignore."
echo "mv|m - [old] [new] file name for rename."
echo "show - show ignore file." ;;
*) echo "Command is not valid. Type 'giti help' for help." ;;
esac

22
bin/gpe
View file

@ -1,22 +0,0 @@
#!/usr/bin/env bash
# For working this script set $GPG_KEY with gpg key
## Functions
encrypt() {
gpg -ea -r $GPG_KEY $@
}
decrypt() {
local f="$1"
if [ ${f: -4} == ".asc" ]
then gpg -d -o ${f%%.asc} $@
elif [ ${f: -4} == ".gpg" ]
then gpg -d -o ${f%%.gpg} $@
fi
}
## Case's
case "$1" in
enc|e) shift; encrypt $@ ;;
dec|d) shift; decrypt $@ ;;
*) echo "Error." ;;
esac