Commit d7d16b96 authored by Jørn Åne's avatar Jørn Åne

Login script for both bash and zsh

parent e86001dd
......@@ -9,7 +9,6 @@ install: dotfiles
install -m 0644 dot.tcshrc $(prefix)/.tcshrc
install -m 0644 dot.vimrc $(prefix)/.vimrc
install -m 0644 dot.zshenv $(prefix)/.zshenv
install -m 0644 dot.login $(prefix)/.login
install -d -m 0755 $(prefix)/.config/fish/
install -m 0644 dot.config/fish/config.fish $(prefix)/.config/fish/config.fish
install -m 0644 dot.gitignore_global $(prefix)/.gitignore_global
......@@ -28,5 +27,4 @@ diff:
diff dot.tcshrc $(prefix)/.tcshrc || true 2>/dev/null
diff dot.vimrc $(prefix)/.vimrc || true 2>/dev/null
diff dot.zshenv $(prefix)/.zshenv || true 2>/dev/null
diff dot.login $(prefix)/.login || true 2>/dev/null
diff dot.config/fish/config.fish $(prefix)/.config/fish/config.fish || true $(prefix)/.config/fish/config.fish 2>/dev/null
......@@ -2,3 +2,6 @@
[[ -r ~/.bashrc ]] && . ~/.bashrc
[[ -r ~/.profile ]] && . ~/.profile
test -e /run/reboot-required && echo -e "\033[31;1;5;40;mREBOOT REQUIRED\033[0m"
test -x /usr/bin/fortune && /usr/bin/fortune
if [ -e /run/reboot-required ] ; then echo -e "\033[31;1;5;40;mREBOOT REQUIRED"; fi
if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune ; fi
# .zlogin
test -e /run/reboot-required && echo -e "\033[31;1;5;40;mREBOOT REQUIRED\033[0m"
test -x /usr/bin/fortune && /usr/bin/fortune
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment