use the clean-gpg alias only if there is a gnupg2 executable present
This commit is contained in:
		
							parent
							
								
									d9dfea0e3c
								
							
						
					
					
						commit
						fc49b2d745
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -1,5 +1,7 @@ | |||
| alias cdiff="colordiff" | ||||
| alias clean-gpg="for a in `gpg2 -k | sed -rn 's/pub +[a-z0-9]+\/(0x[0-9A-Fa-f]+).*/\1/p'`; do gpg2 --quiet --no-tty --edit-key $a clean save; done;" | ||||
| 
 | ||||
| [ -x "$(which gpg2)" ] && alias clean-gpg="for a in `gpg2 -k | sed -rn 's/pub +[a-z0-9]+\/(0x[0-9A-Fa-f]+).*/\1/p'`; do gpg2 --quiet --no-tty --edit-key $a clean save; done;" | ||||
| 
 | ||||
| alias diff="diff -W $(( $(tput cols) - 2))" | ||||
| 
 | ||||
| alias bz2c='bzip2 --best' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue