home · contact · privacy
Add to dotfiles bashrc / bash_profile.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 3 May 2015 02:18:08 +0000 (04:18 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 3 May 2015 02:18:08 +0000 (04:18 +0200)
dotfiles/bash_profile [new file with mode: 0644]
dotfiles/bashrc [new file with mode: 0644]

diff --git a/dotfiles/bash_profile b/dotfiles/bash_profile
new file mode 100644 (file)
index 0000000..17d538c
--- /dev/null
@@ -0,0 +1,3 @@
+# initialization for login shells
+
+source ~/.bashrc
diff --git a/dotfiles/bashrc b/dotfiles/bashrc
new file mode 100644 (file)
index 0000000..2f1dc8d
--- /dev/null
@@ -0,0 +1,24 @@
+# plomlompom's bashrc for non-login shells
+
+# Environment variables.
+export PATH=~/.bin:$PATH
+export EDITOR=vi
+
+# Fancy colors for ls.
+alias ls="ls --color=auto"
+
+# Force these programs to use re-located config files or wrappers.
+# Notice that msmtp does not understand ~ as the home dir, only $HOME.
+alias irssi="irssi --home ~/.config/irssi"
+alias getmail="getmail --getmaildir=~/.config/getmail"
+alias msmtp="msmtp --file=$HOME/.config/msmtp/msmtprc"
+alias mutt="mutt_msmtp_loop"
+
+# Blue prompt with time.
+PS1="\[\e[1;34m\][\\t \\u@\\h \\w]$\[\e[m\] "
+PS2="\[\e[1;34m\]>\[\e[m\] "
+PS3="\[\e[1;34m\]>\[\e[m\] "
+PS4="\[\e[1;34m\]+\[\e[m\] "
+
+# Keep gnome-keyring-manager away from making trouble.
+unset GNOME_KEYRING_CONTROL