# Csh configuration file.
-# Start Zsh in interactive mode, otherwise do nothing.
+# Start Zsh in interactive login mode, otherwise do nothing. -l is used so Zsh
+# sources .zlogin and .zlogout.
if ($?prompt) then
- exec zsh
+ exec zsh -l
endif
# vim: ft=csh
unset ls_color
# Helper function to list all files.
la() {
- ls -a $*
+ ls -a "$@"
}
# Helper function to list the files in list format with access rights, etc.
ll() {
- ls -l $*
+ ls -l "$@"
}
# Helper function to list all files in list format with access rights, etc.
lal() {
- la -l $*
+ la -l "$@"
}
# When leaving the console clear the screen to increase privacy. Taken from
# Debian default bash files and modified. Thanks.
-if [ "$SHLVL" = 1 ]; then
- if [ -x /usr/bin/clear_console ]; then
- /usr/bin/clear_console -q
- else
- clear
- fi
+
+if [ -x /usr/bin/clear_console ]; then
+ /usr/bin/clear_console -q
+else
+ clear
fi
# Make sure sudo rights are removed.