mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Fixed
This commit is contained in:
parent
9354fc8736
commit
4ee25a9224
1 changed files with 7 additions and 7 deletions
|
|
@ -8,14 +8,14 @@ is_ssh_session() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# PS1 Config
|
# PS1 Config
|
||||||
if ! is_ssh_session; then
|
if [ -n "${IN_NIX_SHELL:+x}" ]; then
|
||||||
if [ -n "$IN_NIX_SHELL" ]; then
|
PS1="\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]devShell > \[\033[00m\]"
|
||||||
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
|
else
|
||||||
|
if ! is_ssh_session; then
|
||||||
|
PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]> \[\033[00m\]"
|
||||||
|
else
|
||||||
PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]\u@\h:\[\033[00m\] "
|
PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]\u@\h:\[\033[00m\] "
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Locate and source the bash-completion scripts
|
# Locate and source the bash-completion scripts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue