|
|
|
# Set name of the theme to load.
|
|
|
|
# Look in ~/.oh-my-zsh/themes/
|
|
|
|
# Optionally, if you set this to "random", it'll load a random theme each
|
|
|
|
# time that oh-my-zsh is loaded.
|
|
|
|
ZSH_THEME="dallas"
|
|
|
|
|
|
|
|
# Comment this out to disable weekly auto-update checks
|
|
|
|
#DISABLE_AUTO_UPDATE="true"
|
|
|
|
|
|
|
|
# If this option is set, and you type something with no arguments
|
|
|
|
# which isn't a command, zsh will check to see if it's actually a directory.
|
|
|
|
# This is particularly useful in the form '..'
|
|
|
|
AUTO_CD="true"
|
|
|
|
|
|
|
|
#CORRECT="false"
|
|
|
|
|
|
|
|
# Uncomment following line if you want to disable colors in ls
|
|
|
|
# DISABLE_LS_COLORS="true"
|
|
|
|
|
|
|
|
# Uncomment following line if you want red dots to be displayed while waiting for completion
|
|
|
|
COMPLETION_WAITING_DOTS="true"
|
|
|
|
|
|
|
|
source $HOME/.zsh/antigen.zsh
|
|
|
|
antigen use oh-my-zsh
|
|
|
|
antigen bundle git
|
|
|
|
antigen bundle git-extras
|
|
|
|
antigen bundle composer
|
|
|
|
antigen bundle command-not-found
|
|
|
|
antigen bundle paulirish/git-open
|
|
|
|
#antigen bundle unixorn/autoupdate-antigen.zshplugin
|
|
|
|
antigen bundle djui/alias-tips
|
|
|
|
# OS specific plugins
|
|
|
|
if [[ $CURRENT_OS == 'Linux' ]]; then
|
|
|
|
if [[ $DISTRO == 'Ubuntu' ]]; then
|
|
|
|
antigen bundle ubuntu
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Syntax highlighting bundle.
|
|
|
|
antigen bundle zsh-users/zsh-syntax-highlighting
|
|
|
|
|
|
|
|
antigen bundle zsh-users/zsh-history-substring-search
|
|
|
|
#antigen bundle tarruda/zsh-autosuggestions
|
|
|
|
|
|
|
|
# Load the theme.
|
|
|
|
antigen theme $ZSH_THEME
|
|
|
|
DALLAS_CURRENT_TIME_="%{$fg[yellow]%}%T%{$fg[white]%}|%{$reset_color%}"
|
|
|
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✗ "
|
|
|
|
DALLAS_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}"
|
|
|
|
PROMPT="$DALLAS_CURRENT_TIME_$DALLAS_CURRENT_LOCA_$DALLAS_PROMPT_CHAR_ "
|
|
|
|
|
|
|
|
antigen apply
|
|
|
|
|
|
|
|
# ZSH Higher Order Functions
|
|
|
|
source $HOME/.zsh/functional/functional.plugin.zsh
|
|
|
|
|
|
|
|
#zstyle :omz:plugins:ssh-agent agent-forwarding on
|
|
|
|
#zstyle ':completion:*' completer _complete _ignored _approximate
|
|
|
|
#zstyle ':completion:*' matcher-list '' '' '' 'r:|[._-]=* r:|=*'
|
|
|
|
#zstyle :compinstall filename '/home/alexander/.zshrc'
|
|
|
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
|
|
|
|
|
|
|
autoload -U zmv
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
|
|
|
#setopt extendedglob
|
|
|
|
setopt completealiases
|
|
|
|
setopt completeinword
|
|
|
|
setopt prompt_subst
|
|
|
|
|
|
|
|
SHARE_HISTORY="false"
|
|
|
|
|
|
|
|
bindkey '\e[1~' beginning-of-line
|
|
|
|
bindkey '\e[4~' end-of-line
|
|
|
|
# Vi mode
|
|
|
|
bindkey -v
|
|
|
|
bindkey '^R' history-incremental-pattern-search-backward
|
|
|
|
|
|
|
|
# Allow deleting backwards
|
|
|
|
# http://www.zsh.org/mla/workers/2008/msg01653.html
|
|
|
|
bindkey -M viins '^?' backward-delete-char
|
|
|
|
bindkey -M viins '^H' backward-delete-char
|
|
|
|
|
|
|
|
# Make sure the terminal is in application mode, when zle is active. Only then
|
|
|
|
# are the values from $terminfo valid. And also activate autosuggestions.
|
|
|
|
if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
|
|
|
|
# Bind UP and DOWN arrow keys to history-substring-search.
|
|
|
|
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
|
|
|
bindkey "$terminfo[kcud1]" history-substring-search-down
|
|
|
|
|
|
|
|
function zle-line-init () {
|
|
|
|
printf '%s' "${terminfo[smkx]}"
|
|
|
|
|
|
|
|
# Enable autosuggestions automatically
|
|
|
|
# zle autosuggest-start
|
|
|
|
}
|
|
|
|
|
|
|
|
function zle-line-finish () {
|
|
|
|
printf '%s' "${terminfo[rmkx]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
zle -N zle-line-init
|
|
|
|
zle -N zle-line-finish
|
|
|
|
fi
|
|
|
|
|
|
|
|
#start_agent_nossh
|
|
|
|
keychain --nogui --quick $HOME/.ssh/id_rsa $HOME/.ssh/id_ed25519
|
|
|
|
[[ ( -a $HOME/.keychain/verres-sh ) ]] && source $HOME/.keychain/verres-sh
|
|
|
|
[[ ( -a $HOME/.keychain/verres-sh-gpg ) ]] && source $HOME/.keychain/verres-sh-gpg
|
|
|
|
source ~/.zshenv
|
|
|
|
|
|
|
|
# . /home/alexander/Programming/torch/install/bin/torch-activate
|
|
|
|
eval "$(rbenv init -)"
|