mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 16:00:43 +00:00
Move over my entire custom zsh configuration
This commit is contained in:
parent
89c5009781
commit
a13fe57f2a
11 changed files with 1059 additions and 25 deletions
9
home/programs/terminal/shell/zsh/rc/fallback_term.zsh
Normal file
9
home/programs/terminal/shell/zsh/rc/fallback_term.zsh
Normal file
|
@ -0,0 +1,9 @@
|
|||
# If the set $TERM variable doesn't match any configured terminfo entries
|
||||
# fall back to xterm. This fixes SSH connections from unknown terminals
|
||||
|
||||
if [ -z "$TERM" ]; then
|
||||
export TERM=xterm
|
||||
elif ! infocmp "$TERM" &>/dev/null; then
|
||||
export TERM=xterm
|
||||
echo "TERM set to xterm due to missing terminfo entry."
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue