Evie Litherland-Smith
5ff572a9b7
Move home/ directory under system/ directory. Remove duplicated machine-specific config files, now handled as one per host (excluding hardware-configuration directory) Move as much configuration as possible out of flake.nix and into more appropriate files (e.g. system/default.nix) Add a desktop.nix and laptop.nix for system, both will import home/desktop.nix and home/laptop.nix respectively to reduce duplication in machine-specific config files Remove games and streaming directories, moved directly into Vanguard config file Remove home/personal.nix since it ended up being empty after changes Remove old sway config since I haven't been maintaining it and this refactor will definitely break it
32 lines
567 B
Bash
Executable file
32 lines
567 B
Bash
Executable file
#!/usr/bin/env zsh
|
|
|
|
zle-line-init() {
|
|
emulate -L zsh
|
|
|
|
[[ $CONTEXT == start ]] || return 0
|
|
|
|
while true; do
|
|
zle .recursive-edit
|
|
local -i ret=$?
|
|
[[ $ret == 0 && $KEYS == $'\4' ]] || break
|
|
[[ -o ignore_eof ]] || exit 0
|
|
done
|
|
|
|
local saved_prompt=$PROMPT
|
|
local saved_rprompt=$RPROMPT
|
|
PROMPT=' '
|
|
RPROMPT=''
|
|
zle .reset-prompt
|
|
PROMPT=$saved_prompt
|
|
RPROMPT=$saved_rprompt
|
|
|
|
if ((ret)); then
|
|
zle .send-break
|
|
else
|
|
zle .accept-line
|
|
fi
|
|
return ret
|
|
}
|
|
|
|
zle -N zle-line-init
|