adapts bash settings
This commit is contained in:
parent
e06b218322
commit
4ed7f90e84
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue