Reconfigured prompt
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ pkgs }:
|
||||
|
||||
pkgs.writeShellScriptBin "nixupdate" ''
|
||||
set -Eeuo pipefail
|
||||
set -eo pipefail
|
||||
sudo -v
|
||||
cd /home/joe/.config/nix
|
||||
nix flake update
|
||||
|
||||
@@ -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
|
||||
''
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user