Compare commits
No commits in common. "8fdb1e4d87496835e1ee4b0cd06c48ddf0e86bc1" and "11ab78bf0afde282ea1ab8c92ff7e0a887889d48" have entirely different histories.
8fdb1e4d87
...
11ab78bf0a
@ -1,12 +1,12 @@
|
|||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
function zsh_add_config() {
|
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() {
|
function zsh_add_plugin() {
|
||||||
PLUGIN_NAME=$(echo $1 | cut -d"/" -f2)
|
PLUGIN_NAME=$(echo $1 | cut -d"/" -f2)
|
||||||
if ! [ -d "$ZSH_CONFIG/plugins/$PLUGIN_NAME" ]; then
|
if ! [ -d "$ZDOTDIR/plugins/$PLUGIN_NAME" ]; then
|
||||||
git clone "https://github.com/$1.git" "$ZSH_CONFIG/plugins/$PLUGIN_NAME"
|
git clone "https://github.com/$1.git" "$ZDOTDIR/plugins/$PLUGIN_NAME"
|
||||||
fi
|
fi
|
||||||
zsh_add_config "plugins/$PLUGIN_NAME/$PLUGIN_NAME.plugin.zsh"
|
zsh_add_config "plugins/$PLUGIN_NAME/$PLUGIN_NAME.plugin.zsh"
|
||||||
zsh_add_config "plugins/$PLUGIN_NAME/$PLUGIN_NAME.zsh"
|
zsh_add_config "plugins/$PLUGIN_NAME/$PLUGIN_NAME.zsh"
|
||||||
@ -16,8 +16,8 @@ function zsh_add_plugin() {
|
|||||||
|
|
||||||
function zsh_fpath_plugin() {
|
function zsh_fpath_plugin() {
|
||||||
PLUGIN_NAME=$(echo $1 | cut -d"/" -f2)
|
PLUGIN_NAME=$(echo $1 | cut -d"/" -f2)
|
||||||
if ! [ -d "$ZSH_CONFIG/plugins/$PLUGIN_NAME" ]; then
|
if ! [ -d "$ZDOTDIR/plugins/$PLUGIN_NAME" ]; then
|
||||||
git clone "https://github.com/$1.git" "$ZSH_CONFIG/plugins/$PLUGIN_NAME"
|
git clone "https://github.com/$1.git" "$ZDOTDIR/plugins/$PLUGIN_NAME"
|
||||||
fi
|
fi
|
||||||
fpath+=($ZSH_CONFIG/plugins/$PLUGIN_NAME)
|
fpath+=($ZDOTDIR/plugins/$PLUGIN_NAME)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,8 +2,6 @@ WORDCHARS='~!#$%^&*(){}[]<>?+;'
|
|||||||
MOTION_WORDCHARS='~!#$%^&*(){}[]<>?+;'
|
MOTION_WORDCHARS='~!#$%^&*(){}[]<>?+;'
|
||||||
|
|
||||||
''{back,for}ward-word() WORDCHARS=$MOTION_WORDCHARS zle .$WIDGET
|
''{back,for}ward-word() WORDCHARS=$MOTION_WORDCHARS zle .$WIDGET
|
||||||
zle -N backward-word
|
|
||||||
zle -N forward-word
|
|
||||||
|
|
||||||
bindkey '^[[1;3C' forward-word
|
bindkey '^[[1;3C' forward-word
|
||||||
bindkey '^[[1;3D' backward-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
|
||||||
1
.config/zsh/plugins/zsh-syntax-highlighting
Submodule
1
.config/zsh/plugins/zsh-syntax-highlighting
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit e0165eaa730dd0fa321a6a6de74f092fe87630b0
|
||||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -4,6 +4,6 @@
|
|||||||
[submodule ".config/zsh/plugins/zsh-autosuggestions"]
|
[submodule ".config/zsh/plugins/zsh-autosuggestions"]
|
||||||
path = .config/zsh/plugins/zsh-autosuggestions
|
path = .config/zsh/plugins/zsh-autosuggestions
|
||||||
url = https://github.com/zsh-users/zsh-autosuggestions
|
url = https://github.com/zsh-users/zsh-autosuggestions
|
||||||
[submodule ".config/zsh/plugins/fast-syntax-highlighting"]
|
[submodule ".config/zsh/plugins/zsh-syntax-highlighting"]
|
||||||
path = .config/zsh/plugins/fast-syntax-highlighting
|
path = .config/zsh/plugins/zsh-syntax-highlighting
|
||||||
url = https://github.com/zdharma-continuum/fast-syntax-highlighting.git
|
url = https://github.com/zsh-users/zsh-syntax-highlighting
|
||||||
|
|||||||
13
.zshrc
13
.zshrc
@ -4,29 +4,26 @@ HISTFILE="$HOME/.zsh_history"
|
|||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
SAVEHIST=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 EDITOR="vim"
|
||||||
export TERMINAL="konsole"
|
export TERMINAL="konsole"
|
||||||
|
export TERM="konsole"
|
||||||
export BROWSER="firefox"
|
export BROWSER="firefox"
|
||||||
export VIDEO="mpv"
|
export VIDEO="mpv"
|
||||||
export OPENER="xdg-open"
|
export OPENER="xdg-open"
|
||||||
export GOPATH="$HOME/go"
|
export GOPATH="$HOME/go"
|
||||||
|
|
||||||
|
export ZDOTDIR="$HOME/.config/zsh"
|
||||||
|
|
||||||
# Set emacs key binding.
|
# Set emacs key binding.
|
||||||
bindkey -e
|
bindkey -e
|
||||||
|
|
||||||
# Set zsh config directory.
|
|
||||||
ZSH_CONFIG="$HOME/.config/zsh"
|
|
||||||
|
|
||||||
# Import functions.
|
# Import functions.
|
||||||
source "$ZSH_CONFIG/functions"
|
source "$ZDOTDIR/functions"
|
||||||
|
|
||||||
# Set custom key bindings.
|
# Set custom key bindings.
|
||||||
zsh_add_config keybinds.zsh
|
zsh_add_config keybinds.zsh
|
||||||
|
|
||||||
# Load configs local to the system.
|
|
||||||
zsh_add_config local.zsh
|
|
||||||
|
|
||||||
# Configure pure-prompt.
|
# Configure pure-prompt.
|
||||||
export PURE_PROMPT_SYMBOL="$"
|
export PURE_PROMPT_SYMBOL="$"
|
||||||
if [ "$USER" = "root" ]; then
|
if [ "$USER" = "root" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user