HISTIGNORE added, reworked clean-gpg
This commit is contained in:
		
							parent
							
								
									150c596bcd
								
							
						
					
					
						commit
						70d48919f3
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -25,7 +25,7 @@ alias picocom='picocom -b 115200'
 | 
				
			||||||
alias netcat='netcat -q -1 -vv'
 | 
					alias netcat='netcat -q -1 -vv'
 | 
				
			||||||
alias svn_mime_set='for a in $(find ./ -type f -not -regex ".*\.svn.*"); do svn pset svn:mime-type $(file --mime-type $a | sed "s/  *//g;s/[^:]*://g") $a; done;'
 | 
					alias svn_mime_set='for a in $(find ./ -type f -not -regex ".*\.svn.*"); do svn pset svn:mime-type $(file --mime-type $a | sed "s/  *//g;s/[^:]*://g") $a; done;'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
alias clean-gpg='for a in $(gpg -k | sed -rn 's/pub +[0-9]+[DR]\/(0x[0-9A-Fa-f]+).*/\1/p'); do gpg2 --quiet --no-tty --edit-key $a clean save; done;'
 | 
					alias clean-gpg="for a in `gpg2 -k | sed -rn 's/pub +[0-9]+[DR]\/(0x[0-9A-Fa-f]+).*/\1/p'`; do gpg2 --quiet --no-tty --edit-key $a clean save; done;"
 | 
				
			||||||
alias alert='notify-send --urgency=low -i "$([ $? -eq 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
 | 
					alias alert='notify-send --urgency=low -i "$([ $? -eq 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
 | 
				
			||||||
alias git-patch='git diff --minimal --find-renames --find-copies --relative ./ > ../$(basename `pwd`).patch && git co -- ./'
 | 
					alias git-patch='git diff --minimal --find-renames --find-copies --relative ./ > ../$(basename `pwd`).patch && git co -- ./'
 | 
				
			||||||
alias ssh-add-all='for a in .ssh/id_*; do ssh-add $a; done;'
 | 
					alias ssh-add-all='for a in .ssh/id_*; do ssh-add $a; done;'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								bashrc
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								bashrc
									
										
									
									
									
								
							| 
						 | 
					@ -16,6 +16,8 @@ shopt -s histappend
 | 
				
			||||||
HISTSIZE=1000
 | 
					HISTSIZE=1000
 | 
				
			||||||
HISTFILESIZE=2000
 | 
					HISTFILESIZE=2000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					HISTIGNORE="pwd:ls:ll:cd"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# check the window size after each command and, if necessary,
 | 
					# check the window size after each command and, if necessary,
 | 
				
			||||||
# update the values of LINES and COLUMNS.
 | 
					# update the values of LINES and COLUMNS.
 | 
				
			||||||
shopt -s checkwinsize
 | 
					shopt -s checkwinsize
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue