mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 21:31:19 +08:00 
			
		
		
		
	Add Sublime Text 2 alias for Linux.
Detects the platform using "uname", and sets the alias accordingly. If you are using Linux, this assumes that you have created a symbolic link to /usr/bin/sublime_text.
This commit is contained in:
		
							parent
							
								
									3fdaf26006
								
							
						
					
					
						commit
						6f859c5837
					
				@ -1,3 +1,8 @@
 | 
			
		||||
# Sublime Text 2 Aliases
 | 
			
		||||
alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
 | 
			
		||||
#unamestr = 'uname'
 | 
			
		||||
if [[ uname == 'Linux' ]]; then
 | 
			
		||||
	alias st='open -a /usr/bin/sublime_text'
 | 
			
		||||
elif  [[ uname == 'Darwin' ]]; then
 | 
			
		||||
	alias st='open -a "/Applications/Sublime Text 2.app'
 | 
			
		||||
fi
 | 
			
		||||
alias stt='st .'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user