Improve keyboard and color on macOS
parent
131ed2ccb6
commit
959800069d
18
.zshrc
18
.zshrc
|
@ -18,16 +18,20 @@ setopt interactivecomments
|
||||||
setopt extended_glob
|
setopt extended_glob
|
||||||
|
|
||||||
autoload -U compinit; compinit
|
autoload -U compinit; compinit
|
||||||
|
# basic keybindings
|
||||||
bindkey -v
|
bindkey -v
|
||||||
# search
|
bindkey "^[[1~" beginning-of-line
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey "^[[3~" delete-char
|
||||||
|
bindkey "^[[4~" end-of-line
|
||||||
|
bindkey "^R" history-incremental-search-backward
|
||||||
|
|
||||||
# zsh imports
|
# zsh imports
|
||||||
fpath=( $HOME/.zsh/functions $fpath )
|
fpath=( $HOME/.zsh/functions $fpath )
|
||||||
|
|
||||||
# ls colors
|
# ls colors
|
||||||
if [[ "$(uname -s)" -eq "Darwin" ]]; then
|
if [[ "$(uname -s)" -eq "Darwin" ]]; then
|
||||||
eval $(gdircolors -b $HOME/.dircolors)
|
#eval $(gdircolors -b $HOME/.dircolors)
|
||||||
|
export CLICOLOR=1
|
||||||
else
|
else
|
||||||
eval $(dircolors -b $HOME/.dircolors)
|
eval $(dircolors -b $HOME/.dircolors)
|
||||||
fi
|
fi
|
||||||
|
@ -52,6 +56,9 @@ export PATH="$HOME/.local/bin:$PATH"
|
||||||
eval $(thefuck --alias nope)
|
eval $(thefuck --alias nope)
|
||||||
|
|
||||||
# golang
|
# golang
|
||||||
|
if [[ "$(uname -s)" -eq "Darwin" ]]; then
|
||||||
|
export GOPATH="$HOME/Documents/go"
|
||||||
|
fi
|
||||||
export PATH="$(go env GOPATH)/bin:$PATH"
|
export PATH="$(go env GOPATH)/bin:$PATH"
|
||||||
|
|
||||||
# aliases
|
# aliases
|
||||||
|
@ -60,11 +67,6 @@ alias vim=nvim
|
||||||
# gpg as ssh agent
|
# gpg as ssh agent
|
||||||
test -e "$(which gpgconf)" && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
test -e "$(which gpgconf)" && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
|
|
||||||
# macOS GOPATH
|
|
||||||
if [[ "$(uname -s)" -eq "Darwin" ]]; then
|
|
||||||
export GOPATH="$HOME/Documents/go"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# iTerm2 integration
|
# iTerm2 integration
|
||||||
test -e "$HOME/.iterm2_shell_integration.zsh" && source "$HOME/.iterm2_shell_integration.zsh"
|
test -e "$HOME/.iterm2_shell_integration.zsh" && source "$HOME/.iterm2_shell_integration.zsh"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue