dotfiles/zsh/zshrc

67 lines
2.2 KiB
Bash
Raw Normal View History

2022-01-10 22:54:06 +03:00
export PATH=$HOME/.bin:/usr/local/bin:$HOME/go/bin:$PATH
# Path to your oh-my-zsh installation.
2022-03-23 12:47:03 +03:00
export ZSH="$HOME/.oh-my-zsh"
2022-01-10 22:54:06 +03:00
export EDITOR="/usr/local/bin/micro"
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior
# zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
2022-03-23 12:47:03 +03:00
COMPLETION_WAITING_DOTS="true"
2022-01-10 22:54:06 +03:00
2022-03-23 12:47:03 +03:00
DISABLE_UNTRACKED_FILES_DIRTY="true"
2022-01-10 22:54:06 +03:00
# HIST_STAMPS="mm/dd/yyyy"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=yellow,underline"
2022-03-23 12:47:03 +03:00
plugins=(git zsh-autosuggestions fzf golang)
2022-01-10 22:54:06 +03:00
source $ZSH/oh-my-zsh.sh
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
2022-03-23 12:47:03 +03:00
export EDITOR='a'
2022-01-10 22:54:06 +03:00
fi
# export ARCHFLAGS="-arch x86_64"
2022-03-23 12:47:03 +03:00
[ -f ~/.zshrc.local ] && source ~/.zshrc.local
2022-01-10 22:54:06 +03:00
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zdharma-continuum/zinit-annex-as-monitor \
zdharma-continuum/zinit-annex-bin-gem-node \
zdharma-continuum/zinit-annex-patch-dl \
zdharma-continuum/zinit-annex-rust
### End of Zinit's installer chunk