added: gpg functions in bashrc; modified: nvim config
This commit is contained in:
		
							
								
								
									
										14
									
								
								.bashrc
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								.bashrc
									
									
									
									
									
								
							@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user