2 Commits
Author SHA1 Message Date
GeorgeSG 7c052872cc Change prompt to lambda 2023-11-14 09:26:21 +02:00
GeorgeSG f1e56ce98a Change bash prompt hostname to red 2023-11-14 09:26:21 +02:00
+3 -3
View File
@@ -1,7 +1,7 @@
# Set prompt
IFS='.' read -ra split_hostname <<<$(hostname | tr '[:upper:]' '[:lower:]')
HOSTNAME=${split_hostname[0]}
PS1='\[\e[1;4;36m\]$HOSTNAME\[\e[1;0m\] \[\e[1;32m\]\w\[\e[m\]\[\e[1;0m\] \[\e[0m\] \[\e[1;0m\]'
PS1='\[\e[1;4;31m\]$HOSTNAME\[\e[1;0m\] \[\e[1;32m\]\w\[\e[m\]\[\e[1;0m\] λ\[\e[0m\] \[\e[1;0m\]'
export TERM=xterm-256color
shopt -s cdspell
@@ -56,8 +56,8 @@ export EDITOR='code -w'
# bash-git-prompt
GIT_PROMPT_ONLY_IN_REPO=1
GIT_PROMPT_START="\[\e[1;4;36m\]$HOSTNAME\[\e[1;0m\] \[\e[1;32m\]\w\[\e[m\]"
GIT_PROMPT_END="\[\e[1;m\] \[\e[1;m\]"
GIT_PROMPT_START="\[\e[1;4;31m\]$HOSTNAME\[\e[1;0m\] \[\e[1;32m\]\w\[\e[m\]"
GIT_PROMPT_END="\[\e[1;m\] λ \[\e[1;m\]"
# Disable deprecation warning on mac