]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Add bash login and logout configuration files.
authorSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 18:27:57 +0000 (19:27 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 18:27:57 +0000 (19:27 +0100)
bash/logout [new file with mode: 0644]
bash/profile [new file with mode: 0644]

diff --git a/bash/logout b/bash/logout
new file mode 100644 (file)
index 0000000..91f4964
--- /dev/null
@@ -0,0 +1,8 @@
+# Bash logout configuration file.
+
+
+# When leaving the console clear the screen to increase privacy. Taken from
+# Debian default bash files. Thanks.
+if [ "$SHLVL" = 1 ]; then
+    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
+fi
diff --git a/bash/profile b/bash/profile
new file mode 100644 (file)
index 0000000..3c62d60
--- /dev/null
@@ -0,0 +1,5 @@
+# Bash login configuration file.
+
+
+# Load ~/.bashrc.
+. ~/.bashrc