1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Fix ZSH dependency on system packages

This commit is contained in:
Joe Groocock 2017-01-17 02:02:28 +00:00
parent abce3a12c9
commit ad77335211
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
2 changed files with 14 additions and 5 deletions

9
.zshrc
View File

@ -1,11 +1,11 @@
unsetopt MULTIBYTE
# Path to your oh-my-zsh installation.
ZSH=/usr/share/oh-my-zsh
ZSH=$HOME/.local/share/oh-my-zsh
# Set the theme
ZSH_THEME="fishy"
DISABLE_AUTO_UPDATE="true"
#DISABLE_AUTO_UPDATE="true"
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
ZSH_CONFIG_DIR=$CONFIG_DIR/zsh
@ -43,14 +43,13 @@ bindkey "^[^[[B" down-line-or-beginning-search # Down
zstyle ':completion:*:sudo::' environ PATH="/sbin:/usr/sbin:$PATH" HOME="/root"
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
zstyle :compinstall filename '/home/frebib/.zshrc'
zstyle :compinstall filename "$HOME/.zshrc"
autoload -U compinit ; compinit
plugins=(command-not-found history-substring-search sudo zsh-autosuggestions zsh-completions)
source $ZSH/oh-my-zsh.sh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $ZSH/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_AUTOSUGGEST_CLEAR_WIDGETS=("${(@)ZSH_AUTOSUGGEST_CLEAR_WIDGETS:#(up|down)-line-or-history}")
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(history-substring-search-up history-substring-search-down)

10
scripts/zsh-setup Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
dest="$HOME/.local/share"
mkdir -p "$dest"
cd "$dest"
git clone https://github.com/robbyrussell/oh-my-zsh.git oh-my-zsh
cd oh-my-zsh/plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git