mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
modified icons prompt
This commit is contained in:
parent
5afee9cd3a
commit
6712a071e3
1 changed files with 11 additions and 10 deletions
|
|
@ -27,22 +27,23 @@ remove_icon() {
|
||||||
venv_icons=''${venv_icons//$icon/}
|
venv_icons=''${venv_icons//$icon/}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
py="py"
|
||||||
|
js="js"
|
||||||
|
nix="nix"
|
||||||
|
|
||||||
${if gui.enable then ''
|
${if gui.enable then ''
|
||||||
if [ -n "$DISPLAY" ]; then
|
if [ -n "$DISPLAY" ]; then
|
||||||
python_icon="\[\033[01;33m\]\[\033[00m\]"
|
py=""
|
||||||
node_icon="\[\033[01;93m\]\[\033[00m\]"
|
js=""
|
||||||
nix_icon="\[\033[01;34m\]\[\033[00m\]"
|
nix=""
|
||||||
else
|
|
||||||
python_icon="\[\033[01;33m\]py\[\033[00m\]"
|
|
||||||
node_icon="\[\033[01;93m\]js\[\033[00m\]"
|
|
||||||
nix_icon="\[\033[01;34m\]nix\[\033[00m\]"
|
|
||||||
fi
|
fi
|
||||||
'' else ''
|
'' else ''
|
||||||
python_icon="\[\033[01;33m\]py\[\033[00m\]"
|
|
||||||
node_icon="\[\033[01;93m\]js\[\033[00m\]"
|
|
||||||
nix_icon="\[\033[01;34m\]nix\[\033[00m\]"
|
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
python_icon="\[\033[01;33m\]$py\[\033[00m\]"
|
||||||
|
node_icon="\[\033[01;93m\]$js\[\033[00m\]"
|
||||||
|
nix_icon="\[\033[01;34m\]$nix\[\033[00m\]"
|
||||||
|
|
||||||
check_venv() {
|
check_venv() {
|
||||||
if [ -n "$IN_NIX_SHELL" ]; then
|
if [ -n "$IN_NIX_SHELL" ]; then
|
||||||
add_icon "$nix_icon"
|
add_icon "$nix_icon"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue