Moved custom widgets from these .zshrc where they should be.
This commit is contained in:
0
bin/dotfiles-doctor.sh
Normal file → Executable file
0
bin/dotfiles-doctor.sh
Normal file → Executable file
0
bin/dotfiles-sync.sh
Normal file → Executable file
0
bin/dotfiles-sync.sh
Normal file → Executable file
0
bin/dotfiles-version.sh
Normal file → Executable file
0
bin/dotfiles-version.sh
Normal file → Executable file
0
bin/setup-wizard.sh
Normal file → Executable file
0
bin/setup-wizard.sh
Normal file → Executable file
0
bin/shell-stats.sh
Normal file → Executable file
0
bin/shell-stats.sh
Normal file → Executable file
0
bin/vault.sh
Normal file → Executable file
0
bin/vault.sh
Normal file → Executable file
23
zsh/.zshrc
23
zsh/.zshrc
@@ -210,14 +210,25 @@ bindkey "^[[3~" delete-char # Delete
|
|||||||
|
|
||||||
# --- Custom Widgets ---
|
# --- Custom Widgets ---
|
||||||
|
|
||||||
# Alt+R to reload zsh config
|
reload-zshrc() {
|
||||||
reload-zsh() {
|
echo -n "Re-sourcing ~/.zshrc ... "
|
||||||
source ~/.zshrc
|
source ~/.zshrc
|
||||||
echo "✓ zsh configuration reloaded"
|
echo "Done."
|
||||||
|
_adlee_build_prompt
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
}
|
}
|
||||||
zle -N reload-zsh
|
zle -N reload-zshrc
|
||||||
bindkey "^[r" reload-zsh
|
bindkey "^X@s^[^R" reload-zshrc # Ctrl+Super+Alt+R
|
||||||
|
|
||||||
|
grab-fastfetch() {
|
||||||
|
echo "fastfetch"
|
||||||
|
fastfetch
|
||||||
|
_adlee_build_prompt
|
||||||
|
zle reset-prompt
|
||||||
|
}
|
||||||
|
zle -N grab-fastfetch
|
||||||
|
bindkey "^X@s^[^F" grab-fastfetch # Ctrl+Super+Alt+F
|
||||||
|
|
||||||
|
|
||||||
# Alt+G to show git status
|
# Alt+G to show git status
|
||||||
git-status-widget() {
|
git-status-widget() {
|
||||||
|
|||||||
@@ -127,25 +127,3 @@ zle -N zle-keymap-select
|
|||||||
# Initial prompt build (critical for tmux)
|
# Initial prompt build (critical for tmux)
|
||||||
_adlee_build_prompt
|
_adlee_build_prompt
|
||||||
|
|
||||||
# ============================================================================
|
|
||||||
# CUSTOM WIDGETS
|
|
||||||
# ============================================================================
|
|
||||||
|
|
||||||
reload-zshrc() {
|
|
||||||
echo -n "Re-sourcing ~/.zshrc ... "
|
|
||||||
source ~/.zshrc
|
|
||||||
echo "Done."
|
|
||||||
_adlee_build_prompt
|
|
||||||
zle reset-prompt
|
|
||||||
}
|
|
||||||
zle -N reload-zshrc
|
|
||||||
bindkey "^X@s^[^R" reload-zshrc # Ctrl+Super+Alt+R
|
|
||||||
|
|
||||||
grab-fastfetch() {
|
|
||||||
echo "fastfetch"
|
|
||||||
fastfetch
|
|
||||||
_adlee_build_prompt
|
|
||||||
zle reset-prompt
|
|
||||||
}
|
|
||||||
zle -N grab-fastfetch
|
|
||||||
bindkey "^X@s^[^F" grab-fastfetch # Ctrl+Super+Alt+F
|
|
||||||
|
|||||||
Reference in New Issue
Block a user