Reconfigured prompt

This commit is contained in:
2026-03-19 16:12:19 -05:00
parent 42118b84b8
commit 6270d7164e
7 changed files with 12 additions and 11 deletions

View File

@@ -44,9 +44,9 @@
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
status # exit code of the last command status # exit code of the last command
command_execution_time # duration of the last command command_execution_time # duration of the last command
background_jobs # presence of background jobs # background_jobs # presence of background jobs
direnv # direnv status (https://direnv.net/) # direnv # direnv status (https://direnv.net/)
asdf # asdf version manager (https://github.com/asdf-vm/asdf) # asdf # asdf version manager (https://github.com/asdf-vm/asdf)
virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html) virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
anaconda # conda environment (https://conda.io/) anaconda # conda environment (https://conda.io/)
pyenv # python environment (https://github.com/pyenv/pyenv) pyenv # python environment (https://github.com/pyenv/pyenv)
@@ -551,9 +551,9 @@
###################[ command_execution_time: duration of the last command ]################### ###################[ command_execution_time: duration of the last command ]###################
# Show duration of the last command if takes at least this many seconds. # Show duration of the last command if takes at least this many seconds.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=2
# Show this many fractional digits. Zero means round to seconds. # Show this many fractional digits. Zero means round to seconds.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=1
# Execution time color. # Execution time color.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=248 typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=248
# Duration format: 1d 2h 3m 4s. # Duration format: 1d 2h 3m 4s.
@@ -561,7 +561,7 @@
# Custom icon. # Custom icon.
# typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐' # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'
# Custom prefix. # Custom prefix.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='%246Ftook ' typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='%246F'
#######################[ background_jobs: presence of background jobs ]####################### #######################[ background_jobs: presence of background jobs ]#######################
# Don't show the number of background jobs. # Don't show the number of background jobs.

View File

@@ -1,7 +1,7 @@
{ pkgs }: { pkgs }:
pkgs.writeShellScriptBin "nixclean" '' pkgs.writeShellScriptBin "nixclean" ''
set -Eeuo pipefail set -eo pipefail
sudo -v sudo -v
nix-collect-garbage -d nix-collect-garbage -d
sudo nix-collect-garbage -d sudo nix-collect-garbage -d

View File

@@ -1,7 +1,7 @@
{ pkgs }: { pkgs }:
pkgs.writeShellScriptBin "nixupdate" '' pkgs.writeShellScriptBin "nixupdate" ''
set -Eeuo pipefail set -eo pipefail
sudo -v sudo -v
cd /home/joe/.config/nix cd /home/joe/.config/nix
nix flake update nix flake update

View File

@@ -4,5 +4,5 @@ pkgs.writeShellScriptBin "rebuild-boot" ''
set -Eeuo pipefail set -Eeuo pipefail
sudo -v sudo -v
cd /home/joe/.config/nix cd /home/joe/.config/nix
sudo nixos-rebuild --flake .#$hostname boot rebuild-boot
'' ''

View File

@@ -1,7 +1,7 @@
{ pkgs }: { pkgs }:
pkgs.writeShellScriptBin "rebuild-dry" '' pkgs.writeShellScriptBin "rebuild-dry" ''
set -Eeuo pipefail set -eo pipefail
sudo -v sudo -v
cd /home/joe/.config/nix cd /home/joe/.config/nix
sudo nixos-rebuild --flake .#$hostname dry-build sudo nixos-rebuild --flake .#$hostname dry-build

View File

@@ -1,7 +1,7 @@
{ pkgs }: { pkgs }:
pkgs.writeShellScriptBin "rebuild" '' pkgs.writeShellScriptBin "rebuild" ''
set -Eeuo pipefail set -eo pipefail
sudo -v sudo -v
cd /home/joe/.config/nix cd /home/joe/.config/nix
sudo nixos-rebuild --flake .#$hostname switch sudo nixos-rebuild --flake .#$hostname switch

View File

@@ -111,6 +111,7 @@
enable = true; enable = true;
plugins = [ plugins = [
{ name = "zsh-users/zsh-autosuggestions"; } { name = "zsh-users/zsh-autosuggestions"; }
{ name = "zsh-users/zsh-completions"; }
{ name = "zsh-users/zsh-syntax-highlighting"; } { name = "zsh-users/zsh-syntax-highlighting"; }
{ {
name = "plugins/git"; name = "plugins/git";