diff --git a/dotfiles/p10k.zsh b/dotfiles/p10k.zsh index 963a48f..1ee86d2 100644 --- a/dotfiles/p10k.zsh +++ b/dotfiles/p10k.zsh @@ -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. diff --git a/scripts/nixclean.nix b/scripts/nixclean.nix index 1abb7f3..47f3ed0 100644 --- a/scripts/nixclean.nix +++ b/scripts/nixclean.nix @@ -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 diff --git a/scripts/nixupdate.nix b/scripts/nixupdate.nix index 6cc3069..73468a0 100644 --- a/scripts/nixupdate.nix +++ b/scripts/nixupdate.nix @@ -1,7 +1,7 @@ { pkgs }: pkgs.writeShellScriptBin "nixupdate" '' - set -Eeuo pipefail + set -eo pipefail sudo -v cd /home/joe/.config/nix nix flake update diff --git a/scripts/rebuild-boot.nix b/scripts/rebuild-boot.nix index b31fc33..297788e 100644 --- a/scripts/rebuild-boot.nix +++ b/scripts/rebuild-boot.nix @@ -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 '' diff --git a/scripts/rebuild-dry.nix b/scripts/rebuild-dry.nix index c6a7448..0aabdb6 100644 --- a/scripts/rebuild-dry.nix +++ b/scripts/rebuild-dry.nix @@ -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 diff --git a/scripts/rebuild.nix b/scripts/rebuild.nix index 66c6bc1..5384b08 100644 --- a/scripts/rebuild.nix +++ b/scripts/rebuild.nix @@ -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 diff --git a/terminal.nix b/terminal.nix index 88b68bb..dccb73b 100644 --- a/terminal.nix +++ b/terminal.nix @@ -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";