dotfiles

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

commit e3a9a2de85a21d55c7a70563b549ab065ee6266c
parent f6317875d4a6dfc5de8821c15a374bee8ea5fe59
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri, 10 Nov 2017 15:03:42 -0800

Refactor zsh config

* Adds .zshenv for uname setup.
* Severs dependency on .profile -- .zprofile is now empty.
* Adds gnome-keyring-daemon and fortune call to .zlogin.

Diffstat:
A.zlogin | 18++++++++++++++++++
M.zprofile | 4----
A.zshenv | 4++++
M.zshrc | 12------------
4 files changed, 22 insertions(+), 16 deletions(-)

diff --git a/.zlogin b/.zlogin @@ -0,0 +1,18 @@ +# .zlogin + +# On Linux, run gnome keyring. +if [[ -x "$(which gnome-keyring-daemon)" ]]; then + export $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg) +fi + +# Output login message. +if [ -x "/usr/games/fortune" ]; then + /usr/games/fortune + echo +elif [ -x "/opt/local/bin/fortune" ]; then + /opt/local/bin/fortune + echo +elif [ -x "$HOME/.homebrew/bin/fortune" ]; then + "$HOME/.homebrew/bin/fortune" + echo +fi diff --git a/.zprofile b/.zprofile @@ -1,5 +1 @@ # .zprofile - -emulate sh -. ~/.profile -emulate zsh diff --git a/.zshenv b/.zshenv @@ -0,0 +1,4 @@ +# .zshenv + +# Default read-only permissions for group/other +umask 022 diff --git a/.zshrc b/.zshrc @@ -88,15 +88,3 @@ fi if [ -f ~/.tools ]; then . ~/.tools fi - -# login message -if [ -x "/usr/games/fortune" ]; then - /usr/games/fortune - echo -elif [ -x "/opt/local/bin/fortune" ]; then - /opt/local/bin/fortune - echo -elif [ -x "$HOME/.homebrew/bin/fortune" ]; then - "$HOME/.homebrew/bin/fortune" - echo -fi