Skip to content

Commit

Permalink
chore(dev): Flox/Nix zsh prompt with Warp improved [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck committed Dec 3, 2024
1 parent d09641b commit 318370b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .flox/env/manifest.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flox config --set-bool set_prompt false
# ==> .zshrc
# Warp-ify Flox subshell prompt:
# function git_branch_name()
Expand All @@ -11,9 +12,20 @@
# echo '('$branch') '
# fi
# }
#
# function flox_prompt()
# {
# FLX_ENVS="${FLOX_PROMPT_ENVIRONMENTS:-}"
# if [[ -z "${FLX_ENVS}" ]];
# then
# :
# else
# echo 'FLX ['$FLX_ENVS'] '
# fi
# }
# setopt prompt_subst
# autoload -U colors && colors
# export PS1='%n@%m %{$fg[green]%}%~%{$reset_color%} %{$fg[magenta]%}$(git_branch_name)%{$reset_color%}%# '
# export PS1='%{$fg[red]%}$(flox_prompt)%{$reset_color%}%n@%m %{$fg[green]%}%~%{$reset_color%} %{$fg[magenta]%}$(git_branch_name)%{$reset_color%}%# '
# PROMPT="${PROMPT}"$'\n'
# printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "zsh" }}\x9c'

Expand Down

0 comments on commit 318370b

Please sign in to comment.