[zsh] Screenshot mode

This commit is contained in:
Fabian Ising
2023-09-03 12:55:52 +02:00
parent 58c80b2b1d
commit bb76a182df

View File

@@ -58,11 +58,17 @@ export SUDO_ASKPASS=$(command -v ssh-askpass)
ZLE_RPROMPT_INDENT=0 ZLE_RPROMPT_INDENT=0
# To customize prompt, run `p10k configure` or edit ~/dotfiles/zsh/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/dotfiles/zsh/.p10k.zsh.
if test -f ~/dotfiles/zsh/.p10k.mac.zsh; then function load_p10k() {
source ~/dotfiles/zsh/.p10k.mac.zsh if test -f ~/dotfiles/zsh/.p10k.mac.zsh; then
else source ~/dotfiles/zsh/.p10k.mac.zsh
[[ ! -f ~/dotfiles/zsh/.p10k.zsh ]] || source ~/dotfiles/zsh/.p10k.zsh else
fi [[ ! -f ~/dotfiles/zsh/.p10k.zsh ]] || source ~/dotfiles/zsh/.p10k.zsh
fi
}
load_p10k
alias screenshot_mode='powerlevel10k_plugin_unload; export PS1="$ "; python3 ~/.config/alacritty/screenshot_mode.py on'
alias screenshot_mode_off='prompt_powerlevel9k_setup; python3 ~/.config/alacritty/screenshot_mode.py off'
export LANG="en_US.UTF-8" export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8"