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=(
status # exit code of the last command
command_execution_time # duration of the last command
background_jobs # presence of background jobs
direnv # direnv status (https://direnv.net/)
asdf # asdf version manager (https://github.com/asdf-vm/asdf)
# background_jobs # presence of background jobs
# direnv # direnv status (https://direnv.net/)
# asdf # asdf version manager (https://github.com/asdf-vm/asdf)
virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
anaconda # conda environment (https://conda.io/)
pyenv # python environment (https://github.com/pyenv/pyenv)
@@ -551,9 +551,9 @@
###################[ command_execution_time: duration of the last command ]###################
# 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.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=1
# Execution time color.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=248
# Duration format: 1d 2h 3m 4s.
@@ -561,7 +561,7 @@
# Custom icon.
# typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'
# Custom prefix.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='%246Ftook '
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='%246F'
#######################[ background_jobs: presence of background jobs ]#######################
# Don't show the number of background jobs.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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