[zsh] Move setting VISUAL to init-env-vi and remove LESSHISTFILE
This commit is contained in:
		
							parent
							
								
									a174790ed0
								
							
						
					
					
						commit
						b2974db133
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -5,8 +5,6 @@ autoload -Uz binary_exists
 | 
				
			||||||
function init-env
 | 
					function init-env
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    export PAGER=less
 | 
					    export PAGER=less
 | 
				
			||||||
    export VISUAL=$EDITOR
 | 
					 | 
				
			||||||
    export LESSHISTFILE="-"
 | 
					 | 
				
			||||||
    export GREP_OPTIONS="--color=auto"
 | 
					    export GREP_OPTIONS="--color=auto"
 | 
				
			||||||
    export GREP_COLOR="1;32"
 | 
					    export GREP_COLOR="1;32"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,6 +13,8 @@ function init-env-vi
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        export EDITOR=vi
 | 
					        export EDITOR=vi
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    export VISUAL=$EDITOR
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
init-env-vi "$@"
 | 
					init-env-vi "$@"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue