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:
parent
abce3a12c9
commit
ad77335211
9
.zshrc
9
.zshrc
@ -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
10
scripts/zsh-setup
Executable 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
|
Loading…
Reference in New Issue
Block a user