Compare commits

..

No commits in common. "8fdb1e4d87496835e1ee4b0cd06c48ddf0e86bc1" and "11ab78bf0afde282ea1ab8c92ff7e0a887889d48" have entirely different histories.

8 changed files with 17 additions and 22 deletions

View File

@ -1,12 +1,12 @@
#!/bin/zsh
function zsh_add_config() {
[ -f "$ZSH_CONFIG/$1" ] && ! [ -L "$ZSH_CONFIG/$1" ] && source "$ZSH_CONFIG/$1"
[ -f "$ZDOTDIR/$1" ] && ! [ -L "$ZDOTDIR/$1" ] && source "$ZDOTDIR/$1"
}
function zsh_add_plugin() {
PLUGIN_NAME=$(echo $1 | cut -d"/" -f2)
if ! [ -d "$ZSH_CONFIG/plugins/$PLUGIN_NAME" ]; then
git clone "https://github.com/$1.git" "$ZSH_CONFIG/plugins/$PLUGIN_NAME"
if ! [ -d "$ZDOTDIR/plugins/$PLUGIN_NAME" ]; then
git clone "https://github.com/$1.git" "$ZDOTDIR/plugins/$PLUGIN_NAME"
fi
zsh_add_config "plugins/$PLUGIN_NAME/$PLUGIN_NAME.plugin.zsh"
zsh_add_config "plugins/$PLUGIN_NAME/$PLUGIN_NAME.zsh"
@ -16,8 +16,8 @@ function zsh_add_plugin() {
function zsh_fpath_plugin() {
PLUGIN_NAME=$(echo $1 | cut -d"/" -f2)
if ! [ -d "$ZSH_CONFIG/plugins/$PLUGIN_NAME" ]; then
git clone "https://github.com/$1.git" "$ZSH_CONFIG/plugins/$PLUGIN_NAME"
if ! [ -d "$ZDOTDIR/plugins/$PLUGIN_NAME" ]; then
git clone "https://github.com/$1.git" "$ZDOTDIR/plugins/$PLUGIN_NAME"
fi
fpath+=($ZSH_CONFIG/plugins/$PLUGIN_NAME)
fpath+=($ZDOTDIR/plugins/$PLUGIN_NAME)
}

View File

@ -2,8 +2,6 @@ WORDCHARS='~!#$%^&*(){}[]<>?+;'
MOTION_WORDCHARS='~!#$%^&*(){}[]<>?+;'
''{back,for}ward-word() WORDCHARS=$MOTION_WORDCHARS zle .$WIDGET
zle -N backward-word
zle -N forward-word
bindkey '^[[1;3C' forward-word
bindkey '^[[1;3D' backward-word

@ -1 +0,0 @@
Subproject commit 3d574ccf48804b10dca52625df13da5edae7f553

@ -1 +1 @@
Subproject commit dbefd0dcafaa3ac7d7222ca50890d9d0c97f7ca2
Subproject commit 92b8e9057988566b37ff695e70e2e9bbeb7196c8

@ -1 +1 @@
Subproject commit 85919cd1ffa7d2d5412f6d3fe437ebdbeeec4fc5
Subproject commit c3d4e576c9c86eac62884bd47c01f6faed043fc5

@ -0,0 +1 @@
Subproject commit e0165eaa730dd0fa321a6a6de74f092fe87630b0

6
.gitmodules vendored
View File

@ -4,6 +4,6 @@
[submodule ".config/zsh/plugins/zsh-autosuggestions"]
path = .config/zsh/plugins/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions
[submodule ".config/zsh/plugins/fast-syntax-highlighting"]
path = .config/zsh/plugins/fast-syntax-highlighting
url = https://github.com/zdharma-continuum/fast-syntax-highlighting.git
[submodule ".config/zsh/plugins/zsh-syntax-highlighting"]
path = .config/zsh/plugins/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting

13
.zshrc
View File

@ -4,29 +4,26 @@ HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000
SAVEHIST=10000
export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$home/.local/bin:$PATH"
export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$PATH"
export EDITOR="vim"
export TERMINAL="konsole"
export TERM="konsole"
export BROWSER="firefox"
export VIDEO="mpv"
export OPENER="xdg-open"
export GOPATH="$HOME/go"
export ZDOTDIR="$HOME/.config/zsh"
# Set emacs key binding.
bindkey -e
# Set zsh config directory.
ZSH_CONFIG="$HOME/.config/zsh"
# Import functions.
source "$ZSH_CONFIG/functions"
source "$ZDOTDIR/functions"
# Set custom key bindings.
zsh_add_config keybinds.zsh
# Load configs local to the system.
zsh_add_config local.zsh
# Configure pure-prompt.
export PURE_PROMPT_SYMBOL="$"
if [ "$USER" = "root" ]; then