65 lines
1.2 KiB
Bash
65 lines
1.2 KiB
Bash
export ZSH="/home/$USER/.ohmyzsh"
|
|
|
|
ZSH_THEME="the-one"
|
|
|
|
DISABLE_AUTO_UPDATE="true"
|
|
COMPLETION_WAITING_DOTS="true"
|
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
|
|
plugins=(
|
|
git
|
|
common-aliases
|
|
compleat
|
|
history
|
|
ssh-agent
|
|
)
|
|
|
|
zstyle :omz:plugins:ssh-agent identities
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
# Exports
|
|
export TERM="xterm-256color"
|
|
export EDITOR="vim"
|
|
export LANG="en_US.UTF-8"
|
|
export PATH=$HOME/.local/bin:$PATH
|
|
|
|
# Aliases
|
|
alias vimrc="vim ~/.vimrc"
|
|
|
|
alias dotf="cd ~/dotfiles/dotfiles"
|
|
alias dotdrop="~/dotfiles/dotdrop.sh" --cfg="~/dotfiles/config.yaml"
|
|
|
|
alias fonts="/home/$USER/.local/share/fonts"
|
|
alias listfonts="fc-list :scalable=true:spacing=mono: family"
|
|
alias cachefonts="fc-cache -f -v"
|
|
|
|
alias c="clear"
|
|
alias v="vim"
|
|
alias w="vim ~/vimwiki/index.md"
|
|
|
|
|
|
# fzf
|
|
export FZF_DEFAULT_OPTS='--height 40% --preview="head {}" --layout=reverse --bind "enter:execute(vim {})" --bind "tab:down" --bind "btab:up"'
|
|
|
|
# Allow local aliases
|
|
if [ -f ~/.zshrc_local ]; then
|
|
source ~/.zshrc_local
|
|
fi
|
|
|
|
# Use C-z for 'fg'
|
|
fancy-ctrl-z () {
|
|
if [[ $#BUFFER -eq 0 ]]; then
|
|
BUFFER="fg"
|
|
zle accept-line
|
|
else
|
|
zle push-input
|
|
zle clear-screen
|
|
fi
|
|
}
|
|
zle -N fancy-ctrl-z
|
|
bindkey '^Z' fancy-ctrl-z
|
|
|
|
# Nord dir colors
|
|
test -r "~/.dir_colors" && eval $(dircolors ~/.dir_colors)
|