`&&' is not a short-AND circuit in tcsh, workaround with nested if. - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 49af7009284f214ebc0643b80e4febda9722b603
(DIR) parent bbd7124f7d8d19eebb9e7d5f92f0898455ac45b6
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Fri, 21 Jun 2019 01:45:33
`&&' is not a short-AND circuit in tcsh, workaround with nested if.
Diffstat:
tcshrc | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff -r bbd7124f7d8d -r 49af7009284f tcshrc
--- a/tcshrc Thu Jun 20 23:36:39 2019 +0200
+++ b/tcshrc Fri Jun 21 01:45:33 2019 +0200
@@ -146,10 +146,12 @@
alias xic xclip -i -selection clipboard
alias xoc xclip -o -selection clipboard
-if (( $?term ) && ( $term == emacs )) then
- # Emacs, or - better - `:script' in vi!
- unset rprompt
- setenv PAGER catless
+if ( $?term ) then
+ if ( $term == emacs ) then
+ # Emacs, or - better - `:script' in vi!
+ unset rprompt
+ setenv PAGER catless
+ endif
else if ( $?TMUX ) then
# XXX: Kludge to reset #{pane_title} for tmux
echo -n "\e]0;\a" > /dev/tty