mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
fixed conditional logic
This commit is contained in:
parent
354e765844
commit
06a859aee4
1 changed files with 3 additions and 2 deletions
|
|
@ -105,10 +105,11 @@ function set_prompt() {
|
||||||
check_project
|
check_project
|
||||||
''}
|
''}
|
||||||
|
|
||||||
PS1="$ssh_PS1\n$working_dir\n$green_arrow$white_text"
|
|
||||||
|
|
||||||
${optionalString git.enable ''
|
${if git.enable then ''
|
||||||
PS1="$ssh_PS1\n$working_dir\n$venv_icons$green_arrow$git_branch_PS1$white_text"
|
PS1="$ssh_PS1\n$working_dir\n$venv_icons$green_arrow$git_branch_PS1$white_text"
|
||||||
|
'' else ''
|
||||||
|
PS1="$ssh_PS1\n$working_dir\n$green_arrow$white_text"
|
||||||
''}
|
''}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue