ref(zsh)
This commit is contained in:
parent
31a0733a06
commit
b7eee97b30
@ -18,5 +18,3 @@ alias -g BEEP='&& beep -f 800 -l 250 -n -f 1000 -l 500 || beep -f 800 -l 250 -n
|
||||
alias -s mp4='vlc'
|
||||
alias -s mp3='audacious'
|
||||
alias -s flac='audacious'
|
||||
|
||||
bindkey '`' autosuggest-accept
|
||||
@ -5,7 +5,7 @@ so () {
|
||||
install_if_not_exists() {
|
||||
local path="$HOME/.config/zsh/plugins/$1"
|
||||
if [ ! -d "$path" ]; then
|
||||
/usr/bin/git clone "https://github.com/$1" "$path"
|
||||
git clone "https://github.com/$1" "$path"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@ -2,14 +2,6 @@ _so() {
|
||||
[ -r "$1" ] && [ -f "$1" ] && source "$1"
|
||||
}
|
||||
|
||||
_so /etc/zsh_command_not_found
|
||||
_so "$ZDOTDIR/options"
|
||||
_so "$ZDOTDIR/completion"
|
||||
_so "$ZDOTDIR/history"
|
||||
_so "$ZDOTDIR/prompt"
|
||||
_so "$ZDOTDIR/other"
|
||||
_so "$ZDOTDIR/plugin"
|
||||
_so "$ZDOTDIR/aliases"
|
||||
|
||||
_so "$XDG_CONFIG_HOME/bash/export"
|
||||
_so "$XDG_CONFIG_HOME/bash/aliases"
|
||||
@ -18,4 +10,16 @@ _so "$XDG_CONFIG_HOME/bash/functions"
|
||||
_so "$XDG_CONFIG_HOME/bash/hosts/$HOST"
|
||||
|
||||
|
||||
_so /etc/zsh_command_not_found
|
||||
_so "$ZDOTDIR/options"
|
||||
_so "$ZDOTDIR/completion"
|
||||
_so "$ZDOTDIR/history"
|
||||
_so "$ZDOTDIR/prompt"
|
||||
_so "$ZDOTDIR/other"
|
||||
_so "$ZDOTDIR/aliases"
|
||||
|
||||
_so "$ZDOTDIR/plugin"
|
||||
|
||||
bindkey '`' autosuggest-accept
|
||||
|
||||
_sod "$ZDOTDIR/zshrc.d"
|
||||
Loading…
x
Reference in New Issue
Block a user