-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
39 lines (30 loc) · 1.04 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
##########################################################################
# zsh Config. #
# #
# Most of the configs are in a common file sourced by both bash and zsh: #
# $HOME/.config/my-shell/.bazshrc #
##########################################################################
source $HOME/.config/my-shell/.bazshrc
##########
# Prompt #
##########
# Add username and host if running via ssh.
HOST_PROMPT=''
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
HOST_PROMPT="%F{green}%n%f@%F{yellow}%m%f "
fi
export PROMPT="$HOST_PROMPT%F{magenta}%~%f🐽 "
###############
# Environment #
###############
mysource "$HOME/.fzf.zsh"
# Source work config.
mysource $HOME/.config/my-work/.bazshrc
################
# Key Bindings #
################
if is_macos; then
# Alt + left/right arrow: Move between words.
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
fi