mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
cleaned up zshrc
This commit is contained in:
parent
1e29362ea0
commit
97ccd4cdf5
1 changed files with 21 additions and 20 deletions
23
zshrc
23
zshrc
|
@ -70,26 +70,27 @@ fi
|
||||||
# terminal fallback stuff
|
# terminal fallback stuff
|
||||||
function fix_term
|
function fix_term
|
||||||
{
|
{
|
||||||
|
if (infocmp $1 &> /dev/null) ; then
|
||||||
|
echo $1
|
||||||
|
else
|
||||||
case "$1" in
|
case "$1" in
|
||||||
xterm|screen)
|
rxvt|xterm?*|kterm)
|
||||||
( ( infocmp $1 &> /dev/null ) && echo $1 ) || echo "vt100"
|
fix_term xterm
|
||||||
;;
|
;;
|
||||||
rxvt|xterm*|kterm)
|
rxvt?*|Eterm|aterm)
|
||||||
( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term xterm
|
fix_term rxvt
|
||||||
;;
|
|
||||||
rxvt*|Eterm|aterm)
|
|
||||||
( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term rxvt
|
|
||||||
;;
|
;;
|
||||||
mlterm)
|
mlterm)
|
||||||
( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term kterm
|
fix_term kterm
|
||||||
;;
|
;;
|
||||||
screen*)
|
screen?*)
|
||||||
( ( infocmp $1 &> /dev/null ) && echo $1 ) || fix_term screen
|
fix_term screen
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
( ( infocmp $1 &> /dev/null ) && echo $1 ) || echo "vt100"
|
echo "vt100"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# sorta hacky, but I cannot find a better way to do this :/
|
# sorta hacky, but I cannot find a better way to do this :/
|
||||||
|
|
Loading…
Add table
Reference in a new issue