fixed bash inconsistency and gci alias
This commit is contained in:
		
							parent
							
								
									c5f17241ec
								
							
						
					
					
						commit
						010c9d5f1a
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		
							
								
								
									
										11
									
								
								shellrc
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								shellrc
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -3,13 +3,12 @@
 | 
			
		|||
[[ $- != *i* ]] && return
 | 
			
		||||
 | 
			
		||||
# Simplify further configuration by is_zsh() function instead of using [[]] every time
 | 
			
		||||
if [[ -n ${ZSH_VERSION} ]]; then
 | 
			
		||||
	is_zsh() { return 0 }
 | 
			
		||||
	is_exec() { [[ -x $(whence ${1}) ]] }
 | 
			
		||||
is_zsh() { [[ -n ${ZSH_VERSION} ]]; }
 | 
			
		||||
if is_zsh; then
 | 
			
		||||
	is_exec() { [[ -x $(whence ${1}) ]]; }
 | 
			
		||||
	export HOSTNAME=${HOST}
 | 
			
		||||
else
 | 
			
		||||
	is_zsh() { return 1 }
 | 
			
		||||
	is_exec() { [[ -x $(type -P ${1}) ]] }
 | 
			
		||||
	is_exec() { [[ -x $(type -P ${1}) ]]; }
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# ---> $PATH
 | 
			
		||||
| 
						 | 
				
			
			@ -132,7 +131,7 @@ alias mountnrg='sudo mount -o loop,offset=307200'
 | 
			
		|||
# git
 | 
			
		||||
alias gss='command git status -s'
 | 
			
		||||
alias gdf='command git diff'
 | 
			
		||||
alias gci='command git commit'
 | 
			
		||||
alias gci='command git commit -a'
 | 
			
		||||
alias gup='command git pull'
 | 
			
		||||
# svn
 | 
			
		||||
alias sss='command svn status'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue