]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
csh/rc: Add, starts zsh.
authorSimon Ruderich <simon@ruderich.org>
Sun, 1 May 2011 16:50:00 +0000 (18:50 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 1 May 2011 16:50:00 +0000 (18:50 +0200)
Some system use csh as default shell - start zsh instead.

csh/rc [new file with mode: 0644]
setup.sh

diff --git a/csh/rc b/csh/rc
new file mode 100644 (file)
index 0000000..f2f01a7
--- /dev/null
+++ b/csh/rc
@@ -0,0 +1,9 @@
+# Csh configuration file.
+
+
+# Start Zsh in interactive mode, otherwise do nothing.
+if ($?prompt) then
+    exec zsh
+endif
+
+# vim: ft=csh
index 9137fa6464f5c24e7b135e97cc1c30f866093286..761e4bc2408a96f274776b72cfdccd478dbaaba0 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -47,6 +47,9 @@ link bash ~/.bash
 link bash/rc ~/.bashrc
 link bash/profile ~/.bash_profile
 link bash/logout ~/.bash_logout
+if installed csh; then
+    link csh/rc ~/.cshrc
+fi
 link zsh ~/.zsh
 link zsh/env ~/.zshenv
 link zsh/rc ~/.zshrc