adapts bash settings

This commit is contained in:
Dennis Schoepf 2025-09-21 21:41:37 +02:00
parent e06b218322
commit 4ed7f90e84
2 changed files with 8 additions and 2 deletions

View file

@ -15,6 +15,8 @@
"lg" = "lazygit";
"g" = "git";
"xsrc" = "source ~/.bashrc && source .bash_profile";
"ll" = "ls -l";
"la" = "ls -la";
};
profileExtra = ''
@ -39,8 +41,8 @@
if [ -n "$INSIDE_EMACS" ]; then
PS1="[\u@\h:\w]\\$ "
else
PROMPT_COMMAND="PS1_CMD1=$(git branch --show-current 2>/dev/null)";
PS1="\u@\h \[\e[96m\]\w\[\e[0m\] (\[\e[95m\]$PS1_CMD1\[\e[0m\])\n\[\e[96m\]λ\[\e[0m\] "
PROMPT_COMMAND="PS1_CMD1=$(__git_ps1 "(%s)")";
PS1="\[\e[95m\]\u\[\e[35m\]@\h\[\e[0m\] \[\e[96m\]\w\[\e[0m\] \[\e[95m\]$PS1_CMD1\n\[\e[96m\]λ\[\e[0m\] "
fi
'';
};