1
1
Fork 0

zshrc: Reduce indentation for case

This commit is contained in:
Jonathan Schleifer 2022-11-25 21:30:21 +00:00
parent 25a4191a99
commit 660bce5291

14
zshrc
View file

@ -105,12 +105,12 @@ fi
[ "$ls_on_init" = yes ] && ls [ "$ls_on_init" = yes ] && ls
case $TERM_PROGRAM in case $TERM_PROGRAM in
Apple_Terminal) Apple_Terminal)
__update_terminal_cwd() { __update_terminal_cwd() {
printf '\e]7;%s\a' "file://$HOSTNAME${PWD// /%20}" printf '\e]7;%s\a' "file://$HOSTNAME${PWD// /%20}"
} }
;; ;;
*) *)
__update_terminal_cwd() {} __update_terminal_cwd() {}
;; ;;
esac esac
@ -148,7 +148,7 @@ __precmd() {
} }
case $TERM in case $TERM in
aterm|Eterm|rxvt*|uxterm*|xterm*) aterm|Eterm|rxvt*|uxterm*|xterm*)
# Use set_title if you want to change the term title # Use set_title if you want to change the term title
set_title() { set_title() {
# Without this, precmd would override it # Without this, precmd would override it
@ -164,7 +164,7 @@ case $TERM in
} }
unset_title unset_title
;; ;;
*) *)
precmd() { __precmd } precmd() { __precmd }
;; ;;
esac esac
@ -435,8 +435,7 @@ cross() {
case "$2" in case "$2" in
m68k) m68k)
if [ -z "$amiga_gcc_path" ]; then if [ -z "$amiga_gcc_path" ]; then
echo -n "Please set " 1>&2 echo -n "Please set amiga_gcc_path!" 1>&2
echo "amiga_gcc_path!" 1>&2
return 1 return 1
fi fi
@ -445,8 +444,7 @@ cross() {
;; ;;
ppc) ppc)
if [ -z "$adtools_path" ]; then if [ -z "$adtools_path" ]; then
echo -n "Please set " 1>&2 echo -n "Please set adtools_path!" 1>&2
echo "adtools_path!" 1>&2
return 1 return 1
fi fi