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