aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororeodave <aryadevchavali1@gmail.com>2020-04-07 23:50:24 +0100
committeroreodave <aryadevchavali1@gmail.com>2020-04-07 23:50:24 +0100
commit2d24dd5dbb01d25ad664ce2962a0838178185a89 (patch)
treedd1057793ceb996f0fa9aaae443ee187e049aff4
parent2082475caa02063c1d3f127d546508c1e6669c84 (diff)
downloaddotfiles-2d24dd5dbb01d25ad664ce2962a0838178185a89.tar.gz
dotfiles-2d24dd5dbb01d25ad664ce2962a0838178185a89.tar.bz2
dotfiles-2d24dd5dbb01d25ad664ce2962a0838178185a89.zip
+basically all the stuff I use from omz to zshrc
Completion, syntax highlighting, colorful prompts. Need to add some git support.
-rw-r--r--zshrc26
1 files changed, 26 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index bc1524f..c2588a0 100644
--- a/zshrc
+++ b/zshrc
@@ -9,11 +9,18 @@ export SHELL="zsh"
alias yapf='python2 -m yapf'
alias clip="xclip -sel clip"
alias paste="xclip -o"
+alias ls="ls --color=auto"
+alias l="ls -la"
+alias md="mkdir"
export force_color_prompt=yes
export ZSH_THEME="af-magic"
export XDG_RUNTIME_DIR=/run/user/`id -u`
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
export DOTNET_CLI_TELEMTRY_OPTOUT=1
+# Plugins and general
+PS1="%F{8}[δx@%m%k] %B%F{14}[%(4~|...|)%3~]%F{white}
+λ %b%f%k"
+setopt histignorealldups sharehistory
autoload -U colors && colors
autoload -U compinit
@@ -22,6 +29,23 @@ SAVEHIST=10000
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
+_comp_options+=(globdots)
+
+zstyle ':completion:*' auto-description 'specify: %d'
+zstyle ':completion:*' completer _expand _complete _correct _approximate
+zstyle ':completion:*' format 'Completing %d'
+zstyle ':completion:*' group-name ''
+zstyle ':completion:*' menu select=2 eval "$(dircolors -b)"
+zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
+zstyle ':completion:*' list-colors ''
+zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
+zstyle ':completion:*' menu select=long
+zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
+zstyle ':completion:*' use-compctl false
+zstyle ':completion:*' verbose true
+
+zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
+zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,'
# Programming
editor() {
@@ -62,3 +86,5 @@ gentemplateoff () {
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
+
+source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh