Skip to content

Commit

Permalink
Update with own settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mistaka0s committed May 2, 2019
1 parent 1f4601e commit 4179d38
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 25 deletions.
47 changes: 24 additions & 23 deletions runcoms/zpreztorc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#

# Set case-sensitivity for completion, history lookup, etc.
# zstyle ':prezto:*:*' case-sensitive 'yes'
zstyle ':prezto:*:*' case-sensitive 'yes'

# Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:*:*' color 'yes'
Expand All @@ -19,10 +19,10 @@ zstyle ':prezto:*:*' color 'yes'
# zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib

# Set the Zsh modules to load (man zshmodules).
# zstyle ':prezto:load' zmodule 'attr' 'stat'
zstyle ':prezto:load' zmodule 'attr' 'stat'

# Set the Zsh functions to load (man zshcontrib).
# zstyle ':prezto:load' zfunction 'zargs' 'zmv'
zstyle ':prezto:load' zfunction 'zargs' 'zmv'

# Set the Prezto modules to load (browse modules).
# The order matters.
Expand All @@ -35,14 +35,15 @@ zstyle ':prezto:load' pmodule \
'spectrum' \
'utility' \
'completion' \
'prompt'
'prompt' \
'git'


#
# Autosuggestions
#

# Set the query found color.
# zstyle ':prezto:module:autosuggestions:color' found ''
zstyle ':prezto:module:autosuggestions:color' found ''

#
# Completions
Expand All @@ -57,7 +58,7 @@ zstyle ':prezto:load' pmodule \
#

# Set the key mapping style to 'emacs' or 'vi'.
zstyle ':prezto:module:editor' key-bindings 'emacs'
zstyle ':prezto:module:editor' key-bindings 'vi'

# Auto convert .... to ../..
# zstyle ':prezto:module:editor' dot-expansion 'yes'
Expand All @@ -70,7 +71,7 @@ zstyle ':prezto:module:editor' key-bindings 'emacs'
#

# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
# zstyle ':prezto:module:git:status:ignore' submodules 'all'
zstyle ':prezto:module:git:status:ignore' submodules 'all'

#
# GNU Utility
Expand All @@ -84,13 +85,13 @@ zstyle ':prezto:module:editor' key-bindings 'emacs'
#

# Set the query found color.
# zstyle ':prezto:module:history-substring-search:color' found ''
zstyle ':prezto:module:history-substring-search:color' found ''

# Set the query not found color.
# zstyle ':prezto:module:history-substring-search:color' not-found ''
zstyle ':prezto:module:history-substring-search:color' not-found ''

# Set the search globbing flags.
# zstyle ':prezto:module:history-substring-search' globbing-flags ''
zstyle ':prezto:module:history-substring-search' globbing-flags ''

#
# macOS
Expand All @@ -113,7 +114,7 @@ zstyle ':prezto:module:editor' key-bindings 'emacs'
# Set the prompt theme to load.
# Setting it to 'random' loads a random theme.
# Auto set to 'off' on dumb terminals.
zstyle ':prezto:module:prompt' theme 'sorin'
zstyle ':prezto:module:prompt' theme 'powerlevel9k'

# Set the working directory prompt display length.
# By default, it is set to 'short'. Set it to 'long' (without '~' expansion)
Expand All @@ -129,10 +130,10 @@ zstyle ':prezto:module:prompt' theme 'sorin'
#

# Auto switch the Python virtualenv on directory change.
# zstyle ':prezto:module:python:virtualenv' auto-switch 'yes'
zstyle ':prezto:module:python:virtualenv' auto-switch 'yes'

# Automatically initialize virtualenvwrapper if pre-requisites are met.
# zstyle ':prezto:module:python:virtualenv' initialize 'yes'
zstyle ':prezto:module:python:virtualenv' initialize 'yes'

#
# Ruby
Expand Down Expand Up @@ -164,14 +165,14 @@ zstyle ':prezto:module:prompt' theme 'sorin'

# Set syntax highlighters.
# By default, only the main highlighter is enabled.
# zstyle ':prezto:module:syntax-highlighting' highlighters \
# 'main' \
# 'brackets' \
# 'pattern' \
# 'line' \
# 'cursor' \
# 'root'
#
zstyle ':prezto:module:syntax-highlighting' highlighters \
'main' \
'brackets' \
'pattern' \
'line' \
'cursor' \
'root'

# Set syntax highlighting styles.
# zstyle ':prezto:module:syntax-highlighting' styles \
# 'builtin' 'bg=blue' \
Expand All @@ -187,7 +188,7 @@ zstyle ':prezto:module:prompt' theme 'sorin'
#

# Auto set the tab and window titles.
# zstyle ':prezto:module:terminal' auto-title 'yes'
zstyle ':prezto:module:terminal' auto-title 'yes'

# Set the window title format.
# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
Expand Down
8 changes: 6 additions & 2 deletions runcoms/zprofile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ fi
# Editors
#

export EDITOR='nano'
export VISUAL='nano'
export EDITOR='vim'
export VISUAL='vim'
export PAGER='less'

#
Expand All @@ -45,6 +45,7 @@ typeset -gU cdpath fpath mailpath path
path=(
/usr/local/{bin,sbin}
$path
$HOME/.local/bin
)

#
Expand All @@ -61,3 +62,6 @@ export LESS='-F -g -i -M -R -S -w -X -z-4'
if (( $#commands[(i)lesspipe(|.sh)] )); then
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
fi

export WORKON_HOME="$HOME/.virtualenvs"

4 changes: 4 additions & 0 deletions runcoms/zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
source "${ZDOTDIR:-$HOME}/.zprofile"
fi

export PROJECT_HOME="$HOME/workspace"
export VIRTUALENVWRAPPER_VIRTUALENV="$HOME/.local/bin/virtualenvwrapper.sh"
export VIRTUALENVWRAPPER_SCRIPT="$VIRTUALENVWRAPPER_VIRTUALENV"
13 changes: 13 additions & 0 deletions runcoms/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,23 @@
# Authors:
# Sorin Ionescu <[email protected]>
#
export TERM="xterm-256color"
unsetopt share_history


# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi

bindkey -v
bindkey '^R' history-incremental-pattern-search-backward

# Customize to your needs...
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir virtualenv rbenv)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(vi_mode vcs root_indicator background_jobs)
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_SHORTEN_STRATEGY=truncate_from_right
unsetopt share_history

eval "$(vex --shell-config zsh)"

0 comments on commit 4179d38

Please sign in to comment.