mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
One last spacing fix
This commit is contained in:
parent
86f45a2cd7
commit
820e1a5af6
1 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ function set_ps1_prompt() {
|
||||||
# Check if flake.nix file exists
|
# Check if flake.nix file exists
|
||||||
if [ -f "$(git rev-parse --show-toplevel)/flake.nix" ]; then
|
if [ -f "$(git rev-parse --show-toplevel)/flake.nix" ]; then
|
||||||
# If it exists, set the flake icon and color it blue
|
# If it exists, set the flake icon and color it blue
|
||||||
flake_icon="\[\033[01;34m\]\[\033[00m\]"
|
flake_icon="\[\033[01;34m\] \[\033[00m\]"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the root directory of the git repository
|
# Get the root directory of the git repository
|
||||||
|
|
@ -57,10 +57,10 @@ function set_ps1_prompt() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${IN_NIX_SHELL:+x}" ]; then
|
if [ -n "${IN_NIX_SHELL:+x}" ]; then
|
||||||
PS1="$cur_dir\n$flake_icon \[\033[01;32m\]nixShell>$git_branch\[\033[00m\]"
|
PS1="$cur_dir\n$flake_icon\[\033[01;32m\]nixShell>$git_branch\[\033[00m\]"
|
||||||
else
|
else
|
||||||
if ! is_ssh_session; then
|
if ! is_ssh_session; then
|
||||||
PS1="\n$cur_dir\n$flake_icon \[\033[01;32m\]>$git_branch\[\033[00m\]"
|
PS1="\n$cur_dir\n$flake_icon\[\033[01;32m\]>$git_branch\[\033[00m\]"
|
||||||
else
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue