dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 83147dea3ab038880c95cd8bec1b3151f747ae26
parent 41a00abe862894dc83856c16ad89d1abdb5b1fe8
Author: Chris Bracken <chris@bracken.jp>
Date:   Thu,  3 Mar 2016 11:27:18 -0800

Move fortune to bash/zsh rc files

Diffstat:
M.bashrc | 8++++++++
M.profile | 8--------
M.zshrc | 8++++++++
3 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -114,3 +114,11 @@ UBUNTU_MENUPROXY=0 export GTK_IM_MODULE=ibus export QT_IM_MODULE=ibus export XMODIFIERS=@im=ibus + +# login message +if [ -x "/usr/games/fortune" ]; then + /usr/games/fortune +elif [ -x "/opt/local/bin/fortune" ]; then + /opt/local/bin/fortune +fi +echo diff --git a/.profile b/.profile @@ -25,11 +25,3 @@ if [[ "$(uname)" != "Darwin" && -n "$DISPLAY" && -x "$(which setxkbmap)" ]] then setxkbmap -option ctrl:nocaps fi - -# login message -if [ -x "/usr/games/fortune" ]; then - /usr/games/fortune -elif [ -x "/opt/local/bin/fortune" ]; then - /opt/local/bin/fortune -fi -echo diff --git a/.zshrc b/.zshrc @@ -95,3 +95,11 @@ fi if [ -f ~/.tools ]; then . ~/.tools fi + +# login message +if [ -x "/usr/games/fortune" ]; then + /usr/games/fortune +elif [ -x "/opt/local/bin/fortune" ]; then + /opt/local/bin/fortune +fi +echo