bash: simplify PS1
This commit is contained in:
		
							parent
							
								
									40472939b4
								
							
						
					
					
						commit
						b3fcb1ca53
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -13,10 +13,7 @@ export EDITOR=vim
 | 
				
			||||||
export TIME_STYLE=long-iso
 | 
					export TIME_STYLE=long-iso
 | 
				
			||||||
export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
 | 
					export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
((UID)) && ps_clr=53 || ps_clr=52
 | 
					PS1='\[\e[0m\][ \u@\h \[\e[34m\]\w\[\e[0m\] ]\n\$ '
 | 
				
			||||||
# just a colored version of [ $USER $HOSTNAME:$CWD ]
 | 
					 | 
				
			||||||
printf -v PS1 '\\[\\e[0m\\]\\[\\e[48;5;%sm\\] \\u \\[\\e[48;5;237m\\] \\h \\[\\e[48;5;234m\\] \\w \\[\\e[0m\\]\n\\$ ' $ps_clr
 | 
					 | 
				
			||||||
unset ps_clr
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
unalias ls ld ll 2>/dev/null
 | 
					unalias ls ld ll 2>/dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue