mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
Adjusted PS1
This commit is contained in:
parent
a6ecd71703
commit
9354fc8736
1 changed files with 6 additions and 2 deletions
|
|
@ -7,9 +7,13 @@ is_ssh_session() {
|
|||
fi
|
||||
}
|
||||
|
||||
# Customizing the PS1 prompt
|
||||
# PS1 Config
|
||||
if ! is_ssh_session; then
|
||||
PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]> \[\033[00m\]"
|
||||
if [ -n "$IN_NIX_SHELL" ]; then
|
||||
PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]devShell > \[\033[00m\]"
|
||||
else
|
||||
PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]> \[\033[00m\]"
|
||||
fi
|
||||
else
|
||||
PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]\u@\h:\[\033[00m\] "
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue