Add root alias for optimal becoming root.
							parent
							
								
									c02bd06699
								
							
						
					
					
						commit
						68e20ced3f
					
				|  | @ -26,6 +26,7 @@ ZSH_POWERLINE="${ZSH_POWERLINE:-1}" | ||||||
| ZSH_PRESERVE_HISTORY="${ZSH_PRESERVE_HISTORY:-1}" | ZSH_PRESERVE_HISTORY="${ZSH_PRESERVE_HISTORY:-1}" | ||||||
| ZSH_PRESERVE_HISTORY_IMMEDIATELY="${ZSH_PRESERVE_HISTORY_IMMEDIATELY:-1}" | ZSH_PRESERVE_HISTORY_IMMEDIATELY="${ZSH_PRESERVE_HISTORY_IMMEDIATELY:-1}" | ||||||
| ZSH_PRINT_REBOOT_REQUIRED=${ZSH_PRINT_REBOOT_REQUIRED:-0} # hacky, see below | ZSH_PRINT_REBOOT_REQUIRED=${ZSH_PRINT_REBOOT_REQUIRED:-0} # hacky, see below | ||||||
|  | ZSH_ROOT_ALIAS="${ZSH_ROOT_ALIAS:-1}" | ||||||
| ZSH_SYMFONY_CLI="${ZSH_SYMFONY_CLI:-$(when_binary_available symfony)}" | ZSH_SYMFONY_CLI="${ZSH_SYMFONY_CLI:-$(when_binary_available symfony)}" | ||||||
| ZSH_SYNTAX_HIGHLIGHTING="${ZSH_SYNTAX_HIGHLIGHTING:-1}" | ZSH_SYNTAX_HIGHLIGHTING="${ZSH_SYNTAX_HIGHLIGHTING:-1}" | ||||||
| ZSH_THEFUCK=${ZSH_THEFUCK:-1} | ZSH_THEFUCK=${ZSH_THEFUCK:-1} | ||||||
|  | @ -207,6 +208,14 @@ if [ $ZSH_LOGO_LS -gt 0 ]; then | ||||||
| fi | fi | ||||||
| section_end | section_end | ||||||
| 
 | 
 | ||||||
|  | # root alias (sudo -EHs) | ||||||
|  | section "root alias" | ||||||
|  | if [ $ZSH_ROOT_ALIAS -gt 0 ]; then | ||||||
|  | 	log "Aliasing root to sudo -EHs" | ||||||
|  | 	alias root="sudo -EHs" | ||||||
|  | fi | ||||||
|  | section_end | ||||||
|  | 
 | ||||||
| # sugar to easily connect to remote docker hosts through SSH | # sugar to easily connect to remote docker hosts through SSH | ||||||
| section "ssh-based remote docker access" | section "ssh-based remote docker access" | ||||||
| ssh_docker() { | ssh_docker() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue