summaryrefslogtreecommitdiff
path: root/.zlogin
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2010-06-01 16:50:51 +0200
committerHugues Hiegel <hugues@hiegel.fr>2010-06-01 16:50:51 +0200
commitc88506bf71b08a0597d46c5b55817403fe1ffa00 (patch)
treec6eb74b023d5fb64b93de166de6a0b3f9ec2e4af /.zlogin
parentba7837407338f5488578df323818774365360cab (diff)
[Zlogin/ChPWD] cleanup into todo/when/fortune startup functions
Diffstat (limited to '.zlogin')
-rw-r--r--.zlogin25
1 files changed, 9 insertions, 16 deletions
diff --git a/.zlogin b/.zlogin
index 968ec25..da5dd41 100644
--- a/.zlogin
+++ b/.zlogin
@@ -1,21 +1,14 @@
-:>.tmp.screen-list
-if cmd_exists tmux
-then
- session_manager=tmux
- tmux list-sessions | strings > .tmp.screen-list
-elif cmd_exists screen
-then
- session_manager=screen
- screen -list | strings | grep -v "^No Sockets found" >> .tmp.screen-list
-fi
-if [ -s .tmp.screen-list ]
+cmd_exists keychain && eval $(keychain --eval --inherit any-once --quick)
+
+if cmd_exists fortune
then
- preprint "$session_manager" $color[bold] && echo
- < .tmp.screen-list
- rm -f .tmp.screen-list
-fi
+ preprint "Pensée du jour" && echo
+ fortune fr
+ preprint "" && echo
+ echo
+fi | sed 's/^/ /'
-cmd_exists keychain && eval $(keychain --eval --inherit any-once --quick)
+birthdays
true