1From 60271713025f6b17dda29721be012a8428e77185 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Wed, 22 Mar 2017 18:56:49 -0700 4Subject: [PATCH 2/2] Add debian csh scripts 5 6Signed-off-by: Khem Raj <raj.khem@gmail.com> 7--- 8 csh.cshrc | 15 +++++++++++++++ 9 csh.login | 8 ++++++++ 10 csh.logout | 1 + 11 3 files changed, 24 insertions(+) 12 create mode 100644 csh.cshrc 13 create mode 100644 csh.login 14 create mode 100644 csh.logout 15 16diff --git a/csh.cshrc b/csh.cshrc 17new file mode 100644 18index 0000000..29c934a 19--- /dev/null 20+++ b/csh.cshrc 21@@ -0,0 +1,15 @@ 22+# /etc/csh.cshrc: system-wide .cshrc file for csh(1) and tcsh(1) 23+ 24+if ($?tcsh && $?prompt) then 25+ 26+ bindkey "\e[1~" beginning-of-line # Home 27+ bindkey "\e[7~" beginning-of-line # Home rxvt 28+ bindkey "\e[2~" overwrite-mode # Ins 29+ bindkey "\e[3~" delete-char # Delete 30+ bindkey "\e[4~" end-of-line # End 31+ bindkey "\e[8~" end-of-line # End rxvt 32+ 33+ set autoexpand 34+ set autolist 35+ set prompt = "%U%m%u:%B%~%b%# " 36+endif 37diff --git a/csh.login b/csh.login 38new file mode 100644 39index 0000000..2455c3c 40--- /dev/null 41+++ b/csh.login 42@@ -0,0 +1,8 @@ 43+# /etc/csh.login: system-wide .login file for csh(1) and tcsh(1) 44+ 45+# allow for other packages/system admins to customize the shell environment 46+if (-e /etc/csh/login.d && `/bin/ls /etc/csh/login.d` != "") then 47+ foreach FILE (`/bin/ls /etc/csh/login.d/*`) 48+ source $FILE; 49+ end; 50+endif 51diff --git a/csh.logout b/csh.logout 52new file mode 100644 53index 0000000..a207eba 54--- /dev/null 55+++ b/csh.logout 56@@ -0,0 +1 @@ 57+# /etc/csh.logout: system-wide .logout file for csh(1) and tcsh(1) 58-- 592.12.1 60 61