mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
nit
This commit is contained in:
parent
9c2fca4e5e
commit
707d93e3ae
1 changed files with 6 additions and 4 deletions
|
|
@ -7,15 +7,15 @@ check_ssh() {
|
|||
|
||||
function check_venv() {
|
||||
if [ -n "$IN_NIX_SHELL" ]; then
|
||||
nix_icon="\[\033[01;34m\] \[\033[00m\]"
|
||||
local nix_icon="\[\033[01;34m\] \[\033[00m\]"
|
||||
venv_icons+="$nix_icon"
|
||||
|
||||
if [ -n "$VIRTUAL_ENV" ]; then
|
||||
python_icon="\[\033[01;33m\] \[\033[00m\]"
|
||||
local python_icon="\[\033[01;33m\] \[\033[00m\]"
|
||||
venv_icons+="$python_icon"
|
||||
fi
|
||||
if [ -d "''${git_root}/node_modules" ]; then
|
||||
node_icon="\[\033[01;93m\] \[\033[00m\]"
|
||||
local node_icon="\[\033[01;93m\] \[\033[00m\]"
|
||||
venv_icons+="$node_icon"
|
||||
fi
|
||||
else
|
||||
|
|
@ -49,9 +49,11 @@ function check_git() {
|
|||
}
|
||||
|
||||
function set_prompt() {
|
||||
local working_dir="\[\033[01;34m\]\w\[\033[00m\]"
|
||||
local green_arrow="\[\033[01;32m\]>> "
|
||||
local white_text="\[\033[00m\]"
|
||||
local working_dir="\[\033[01;34m\]\w\[\033[00m\]"
|
||||
|
||||
local ssh_PS1
|
||||
local git_root
|
||||
local venv_icons
|
||||
local git_branch_PS1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue