Mercurial > hg > zsh-env
comparison zshrc @ 163:201c8ca43ab1
reset the environment for a proper 24 hour display of time
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 17 Jan 2020 15:29:03 +0100 |
parents | 0bd8976bd5fb |
children | 20ac5fedc060 |
comparison
equal
deleted
inserted
replaced
162:0bd8976bd5fb | 163:201c8ca43ab1 |
---|---|
25 fpath=(~/.zsh-env/completion $fpath) | 25 fpath=(~/.zsh-env/completion $fpath) |
26 autoload -U compinit | 26 autoload -U compinit |
27 | 27 |
28 # -u avoids compinit complaining when running as root (see man zshcompsys) | 28 # -u avoids compinit complaining when running as root (see man zshcompsys) |
29 compinit -u | 29 compinit -u |
30 | |
31 # setup a valid locale for displaying 24 hour time | |
32 unset LC_ALL | |
33 export LC_TIME=POSIX | |
30 | 34 |
31 # custom functions/aliases that should work on all platforms | 35 # custom functions/aliases that should work on all platforms |
32 cd() { builtin cd "$@"; print -D $PWD; } | 36 cd() { builtin cd "$@"; print -D $PWD; } |
33 ff() { find $2 -print0 | xargs -0 grep $1 } | 37 ff() { find $2 -print0 | xargs -0 grep $1 } |
34 alias gk="$HOME/.zsh-env/gk.sh" | 38 alias gk="$HOME/.zsh-env/gk.sh" |