zsh
This commit is contained in:
parent
712367eb98
commit
4dbf1a4bfd
1 changed files with 4 additions and 5 deletions
9
.zshrc
9
.zshrc
|
|
@ -1,13 +1,13 @@
|
||||||
# Source some global/public stuff
|
# Source some global/public stuff.
|
||||||
source ~/.env
|
source ~/.env
|
||||||
|
|
||||||
# Source some private stuff or custom things that are different on my systems
|
# Source some private stuff or custom things that are different on my systems.
|
||||||
source ~/.penv
|
source ~/.penv
|
||||||
|
|
||||||
# Do some exports!
|
# Do some exports!
|
||||||
source ~/.zsh/exports.sh
|
source ~/.zsh/exports.sh
|
||||||
|
|
||||||
# Load Oh-my-Zsh
|
# Load Oh-my-Zsh.
|
||||||
source ~/.zsh/oh-my-zsh.sh
|
source ~/.zsh/oh-my-zsh.sh
|
||||||
|
|
||||||
# I use xterm and this sets a nice title with hostname and cwd in it.
|
# I use xterm and this sets a nice title with hostname and cwd in it.
|
||||||
|
|
@ -43,8 +43,7 @@ for function in ~/.zsh/functions.d/*.sh; do
|
||||||
source $function
|
source $function
|
||||||
done
|
done
|
||||||
|
|
||||||
# Update tmux window title to the current running command
|
# Update tmux window title to the current running command.
|
||||||
# In root's .zshrc (or any su-target user)
|
|
||||||
if [ -n "$TMUX" ]; then
|
if [ -n "$TMUX" ]; then
|
||||||
function preexec() {
|
function preexec() {
|
||||||
local cmd=${1[(wr)^(*=*|sudo|su|command)]}
|
local cmd=${1[(wr)^(*=*|sudo|su|command)]}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue