mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-11-04 10:58:43 +00:00
Attempt to show hostname in prompt
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Colors
|
||||
PS1='\[\e[1;32m\]\w\[\e[m\]\[\e[1;0m\] \[\e[0m\] \[\e[1;0m\]'
|
||||
# Set prompt
|
||||
IFS='.' read -ra split_hostname <<<$(hostname | tr '[:upper:]' '[:lower:]')
|
||||
HOSTNAME=${split_hostname[0]}
|
||||
PS1='\[\e[1;36m\]$HOSTNAME | \[\e[1;32m\]\w\[\e[m\]\[\e[1;0m\] \[\e[0m\] \[\e[1;0m\]'
|
||||
export TERM=xterm-256color
|
||||
|
||||
shopt -s autocd
|
||||
|
||||
Reference in New Issue
Block a user