dlfkjsd
This commit is contained in:
parent
83176448ec
commit
b70fd757c5
2 changed files with 15 additions and 15 deletions
|
@ -1,14 +1,11 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
# TODO: Add vcs
|
|
||||||
|
|
||||||
# stt colors
|
local c0='%{\e[0m%}'
|
||||||
local c0=$'\e[0m'
|
local c31='%{\e[31m%}'
|
||||||
local c31=$'\e[31m'
|
local c33='%{\e[33m%}'
|
||||||
local c33=$'\e[33m'
|
local c34='%{\e[34m%}'
|
||||||
local c34=$'\e[34m'
|
local c35='%{\e[35m%}'
|
||||||
local c35=$'\e[35m'
|
local c38='%{\e[38m%}'
|
||||||
local c38=$'\e[38m'
|
|
||||||
# end colors
|
|
||||||
|
|
||||||
local nix_shell_ps1_t=" $c34{$c33 shell$c34}$c0"
|
local nix_shell_ps1_t=" $c34{$c33 shell$c34}$c0"
|
||||||
local path_no_ghostty="$(echo "$PATH" | sed -e 's/:\/nix\/store\/.*-ghostty-.*\/bin://g')"
|
local path_no_ghostty="$(echo "$PATH" | sed -e 's/:\/nix\/store\/.*-ghostty-.*\/bin://g')"
|
||||||
|
@ -19,11 +16,6 @@ elif [[ "$path_no_ghostty" == *"/nix/store"* ]]; then
|
||||||
local nix_shell_ps1="$nix_shell_ps1_t"
|
local nix_shell_ps1="$nix_shell_ps1_t"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
setopt prompt_subst
|
|
||||||
autoload -Uz vcs_info
|
|
||||||
precmd () { vcs_info }
|
|
||||||
zstyle ':vcs_info:*' formats " ${c34}${c0}${c31}(%b)${c0}"
|
zstyle ':vcs_info:*' formats " ${c34}${c0}${c31}(%b)${c0}"
|
||||||
|
|
||||||
|
export PS1="${c38}[${c35}%3~${c0}${vcs_info_msg_0_}${nix_shell_ps1}${c38}]${c0}# "
|
||||||
export PS1="${c38}[${c35}%3~${c0}$vcs_info_msg_0_${nix_shell_ps1}${c38}]${c0}# "
|
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
fastfetch
|
fastfetch
|
||||||
tre-command
|
tre-command
|
||||||
btop
|
btop
|
||||||
|
zsh-completions
|
||||||
|
nix-zsh-completions
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.bat = {
|
programs.bat = {
|
||||||
|
@ -51,6 +53,12 @@
|
||||||
tree = "tre";
|
tree = "tre";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
initExtraFirst = ''
|
||||||
|
setopt prompt_subst
|
||||||
|
autoload -Uz vcs_info
|
||||||
|
precmd () { vcs_info }
|
||||||
|
'';
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
alias -g -- -h='-h 2>&1 | bat --language=help --style=plain'
|
alias -g -- -h='-h 2>&1 | bat --language=help --style=plain'
|
||||||
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
|
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
|
||||||
|
|
Loading…
Add table
Reference in a new issue