diff options
Diffstat (limited to '')
| -rw-r--r-- | dot_zsh/p10k.zsh | 2 | ||||
| -rw-r--r-- | dot_zshenv | 8 | ||||
| -rw-r--r-- | dot_zshrc.tmpl | 22 | 
3 files changed, 22 insertions, 10 deletions
| diff --git a/dot_zsh/p10k.zsh b/dot_zsh/p10k.zsh index d17b954..3a41f03 100644 --- a/dot_zsh/p10k.zsh +++ b/dot_zsh/p10k.zsh @@ -99,7 +99,7 @@      # ip                    # ip address and bandwidth usage for a specified network interface      # public_ip             # public IP address      # proxy                 # system-wide http/https/ftp proxy -    # battery               # internal battery +    battery                 # internal battery      # wifi                  # wifi speed      # example               # example user-defined segment (see prompt_example function below)    ) @@ -2,9 +2,11 @@  export GPG_TTY="${TTY}"  # Otherwise we cannot use ^o as a keybinding -if [[ `uname` == "Darwin" ]]; then -    stty discard undef -fi +case `uname` in +    Darwin|OpenBSD) +        stty discard undef +        ;; +esac  aklogs () {      for r in ANDREW.CMU.EDU CLUB.CC.CMU.EDU; do diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index b1ee130..d554e8a 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -48,12 +48,6 @@ export BZR_EMAIL="$NAME <$EMAIL>"       # Override email for Bazaar.  export GIT_AUTHOR_NAME=$NAME  export DARCS_EMAIL="$NAME <$EMAIL>"  export QUILT_PATCHES=debian/patches -if [[ `hostname` = "demeter.rak.ac" ]]; then -    export PATH=${HOME}/bin:/opt/local/bin:/opt/local/sbin:/usr/sbin:/sbin:$PATH:${GEM_BIN}:${HOME}/.local/bin/ -    export MANPATH=/opt/local/share/man:$MANPATH -else -    export PATH=${HOME}/bin:/usr/sbin:/sbin:$PATH:${GEM_BIN}:${HOME}/.local/bin/ -fi  export MANWIDTH=80  export MANOPT="-L en"  export PAGER=less @@ -62,6 +56,22 @@ export PDFVIEWER=evince  export BROWSER=firefox  export TEXMFHOME=${HOME}/.texmf  export KRB5CCNAME=DIR:${HOME}/.cache/krb5cc # kerberos credentials cache +export GOPATH=${HOME}/.go + +export PATH=/usr/sbin:/sbin:${PATH} +case `uname` in +    Linux) +        ;; +    Darwin) +        export PATH=/opt/local/bin:/opt/local/sbin:/usr/sbin:/sbin:$PATH +        export MANPATH=/opt/local/share/man:${MANPATH} +        ;; +    OpenBSD) +        export PATH=/usr/games:${PATH} +        ;; +    *) +esac +export PATH=${HOME}/bin:${PATH}  alias apt-upgrade='sudo apt-get update && sudo apt-get dist-upgrade'  alias dbuild='GPG_TTY=$(tty) debuild -S -sa -k$GPGKEY' | 
