From e49f872029c6949cbf5998a0c701956510612a40 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Tue, 20 Jun 2023 13:33:05 +0200 Subject: [PATCH] added: gpg functions in bashrc; modified: nvim config --- .bashrc | 14 +++++++++++++- .config/nvim/lua/config.lua | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index c7a2af5..778def8 100644 --- a/.bashrc +++ b/.bashrc @@ -126,6 +126,18 @@ m3u8-download() { 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 ## utility @@ -227,5 +239,5 @@ export PATH="$PATH:$HOME/.local/share/flatpak/exports/bin" # fi export $(dbus-launch) - +bash /home/fr/bara.sh #screenfetch diff --git a/.config/nvim/lua/config.lua b/.config/nvim/lua/config.lua index 5aba0e4..a4fa29e 100644 --- a/.config/nvim/lua/config.lua +++ b/.config/nvim/lua/config.lua @@ -1,7 +1,7 @@ local set = vim.opt set.mouse = 'a' -set.encoding = 'utf-8' +set.encoding = 'UTF-8' set.fileencoding = 'UTF-8' set.number = true