I don't use zsh after all, more control over grc in bashrc, bashrc cleanup
This commit is contained in:
		
							parent
							
								
									0eafdc61be
								
							
						
					
					
						commit
						18ff41af0e
					
				
					 3 changed files with 20 additions and 275 deletions
				
			
		
							
								
								
									
										16
									
								
								bashplugins
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								bashplugins
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4,8 +4,20 @@ vscripts="${HOME}/vscripts"
 | 
			
		|||
completion_path='/usr/share/bash-completion/bash_completion'
 | 
			
		||||
[[ -r "${completion_path}" ]] && . "${completion_path}"
 | 
			
		||||
 | 
			
		||||
grc_rc='/etc/profile.d/grc.bashrc'
 | 
			
		||||
[[ -r "${grc_rc}" ]] && . "${grc_rc}"
 | 
			
		||||
# grc
 | 
			
		||||
colorize() {
 | 
			
		||||
        local cmds cmd
 | 
			
		||||
        cmds=(\
 | 
			
		||||
            cc configure cvs df diff dig gcc gmake id ip last lsof make mount \
 | 
			
		||||
            mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \
 | 
			
		||||
        )
 | 
			
		||||
        for cmd in ${cmds[@]}; do
 | 
			
		||||
            alias ${cmd}="command grc -es --colour=auto ${cmd}"
 | 
			
		||||
        done
 | 
			
		||||
}
 | 
			
		||||
if is_exec grc; then
 | 
			
		||||
    colorize
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# because fuck you thats' why
 | 
			
		||||
fuck() { echo 'no, fuck you'; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue