added: gpg functions in bashrc; modified: nvim config

This commit is contained in:
Filip Rojek 2023-06-20 13:33:05 +02:00
parent 269efeacd5
commit e49f872029
Signed by: fr
GPG Key ID: 15DACCB749C801FA
2 changed files with 14 additions and 2 deletions

14
.bashrc
View File

@ -126,6 +126,18 @@ m3u8-download() {
youtube-dl -f $format_code --hls-prefer-native "$1" youtube-dl -f $format_code --hls-prefer-native "$1"
} }
## GPG functions
gpg_encrypt () {
output=~/"${1}".$(date +%s).enc
#gpg --encrypt --armor --output ${output} -r 0x0000 -r 0x0001 -r 0x0002 "${1}" && echo "${1} -> ${output}"
gpg --encrypt --armor --output ${output} "${1}" && echo "${1} -> ${output}"
}
gpg_decrypt () {
output=$(echo "${1}" | rev | cut -c16- | rev)
gpg --decrypt --output ${output} "${1}" && echo "${1} -> ${output}"
}
# Aliases and Exports # Aliases and Exports
## utility ## utility
@ -227,5 +239,5 @@ export PATH="$PATH:$HOME/.local/share/flatpak/exports/bin"
# fi # fi
export $(dbus-launch) export $(dbus-launch)
bash /home/fr/bara.sh
#screenfetch #screenfetch

View File

@ -1,7 +1,7 @@
local set = vim.opt local set = vim.opt
set.mouse = 'a' set.mouse = 'a'
set.encoding = 'utf-8' set.encoding = 'UTF-8'
set.fileencoding = 'UTF-8' set.fileencoding = 'UTF-8'
set.number = true set.number = true