mirror of
				https://github.com/mitchell/dotfiles.git
				synced 2025-11-03 21:25:26 +00:00 
			
		
		
		
	Add get aliases for macOS, and fix get and getu for arch and debian
This commit is contained in:
		
							parent
							
								
									c1b5dfc263
								
							
						
					
					
						commit
						b6a2a9f8b8
					
				| 
						 | 
					@ -25,6 +25,11 @@ function define_aliases -a uname -d 'Defines aliases for commonly used commands'
 | 
				
			||||||
            alias goland 'open -a Goland'
 | 
					            alias goland 'open -a Goland'
 | 
				
			||||||
            alias rider 'open -a Rider'
 | 
					            alias rider 'open -a Rider'
 | 
				
			||||||
            alias webstorm 'open -a Webstorm'
 | 
					            alias webstorm 'open -a Webstorm'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            alias get 'brew install'
 | 
				
			||||||
 | 
					            alias getu 'brew upgrade'
 | 
				
			||||||
 | 
					            alias gets 'brew search'
 | 
				
			||||||
 | 
					            alias getr 'brew uninstall'
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Linux distro specific aliases below
 | 
					    # Linux distro specific aliases below
 | 
				
			||||||
| 
						 | 
					@ -41,13 +46,13 @@ function define_aliases -a uname -d 'Defines aliases for commonly used commands'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    switch "$distro"
 | 
					    switch "$distro"
 | 
				
			||||||
        case 'arch'
 | 
					        case 'arch'
 | 
				
			||||||
            alias get 'pikaur -Syu'
 | 
					            alias get 'pikaur -S'
 | 
				
			||||||
            alias getu 'pikaur -Syu'
 | 
					            alias getu 'pikaur -Syu'
 | 
				
			||||||
            alias gets 'pikaur'
 | 
					            alias gets 'pikaur'
 | 
				
			||||||
            alias getr 'pikaur -Rsu'
 | 
					            alias getr 'pikaur -Rsu'
 | 
				
			||||||
        case 'debian'
 | 
					        case 'debian'
 | 
				
			||||||
            alias get 'sudo apt update; and sudo apt install'
 | 
					            alias get 'sudo apt update; and sudo apt install'
 | 
				
			||||||
            alias getu 'sudo apt update; and sudo apt upgrade'
 | 
					            alias getu 'sudo apt update; and sudo apt upgrade; and sudo apt autoremove; and sudo apt autoclean'
 | 
				
			||||||
            alias gets 'sudo apt update; and apt search'
 | 
					            alias gets 'sudo apt update; and apt search'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            function getr -d 'Alias for apt uninstall and autoremove'
 | 
					            function getr -d 'Alias for apt uninstall and autoremove'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue