This commit is contained in:
thek4n 2024-04-15 12:49:37 +03:00
parent 31a0733a06
commit b7eee97b30
3 changed files with 15 additions and 13 deletions

View File

@ -17,6 +17,4 @@ 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 mp4='vlc'
alias -s mp3='audacious' alias -s mp3='audacious'
alias -s flac='audacious' alias -s flac='audacious'
bindkey '`' autosuggest-accept

View File

@ -5,7 +5,7 @@ so () {
install_if_not_exists() { install_if_not_exists() {
local path="$HOME/.config/zsh/plugins/$1" local path="$HOME/.config/zsh/plugins/$1"
if [ ! -d "$path" ]; then if [ ! -d "$path" ]; then
/usr/bin/git clone "https://github.com/$1" "$path" git clone "https://github.com/$1" "$path"
fi fi
} }
@ -17,4 +17,4 @@ install_if_not_exists unixorn/fzf-zsh-plugin
so ~/.config/zsh/plugins/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh so ~/.config/zsh/plugins/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
so ~/.config/zsh/plugins/zsh-users/zsh-autosuggestions/zsh-autosuggestions.zsh so ~/.config/zsh/plugins/zsh-users/zsh-autosuggestions/zsh-autosuggestions.zsh
so ~/.config/zsh/plugins/hlissner/zsh-autopair/autopair.zsh so ~/.config/zsh/plugins/hlissner/zsh-autopair/autopair.zsh
so ~/.config/zsh/plugins/unixorn/fzf-zsh-plugin/fzf-zsh-plugin.plugin.zsh so ~/.config/zsh/plugins/unixorn/fzf-zsh-plugin/fzf-zsh-plugin.plugin.zsh

View File

@ -2,14 +2,6 @@ _so() {
[ -r "$1" ] && [ -f "$1" ] && source "$1" [ -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/export"
_so "$XDG_CONFIG_HOME/bash/aliases" _so "$XDG_CONFIG_HOME/bash/aliases"
@ -18,4 +10,16 @@ _so "$XDG_CONFIG_HOME/bash/functions"
_so "$XDG_CONFIG_HOME/bash/hosts/$HOST" _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" _sod "$ZDOTDIR/zshrc.d"