diff --git a/.config/zsh/aliases b/.config/zsh/aliases index 93547aa..4bca32c 100644 --- a/.config/zsh/aliases +++ b/.config/zsh/aliases @@ -52,6 +52,7 @@ alias lt='exa -aT --color=always --group-directories-first' # tree listing alias cfvim='vim $XDG_CONFIG_HOME/vim/vimrc' alias cfbash='vim $HOME/.bashrc' alias cfzsh='vim $HOME/.zshrc' +alias cfxres='vim $HOME/.Xresources' alias cfbsp='vim $XDG_CONFIG_HOME/bspwm/bspwmrc' alias cfpoly='vim $XDG_CONFIG_HOME/polybar/config' alias cfkeys='vim $XDG_CONFIG_HOME/sxhkd/sxhkdrc' diff --git a/.config/zsh/keybinds b/.config/zsh/keybinds index e3978a4..c212a55 100644 --- a/.config/zsh/keybinds +++ b/.config/zsh/keybinds @@ -1,2 +1,2 @@ #!/bin/env zsh -#bindkey '^ ' autosuggest-accept +bindkey '^ ' autosuggest-accept diff --git a/.config/zsh/profile b/.config/zsh/profile index 2ded106..d93b871 100644 --- a/.config/zsh/profile +++ b/.config/zsh/profile @@ -1,9 +1,4 @@ #!/bin/zsh -# Path to your oh-my-zsh installation. -export ZSH="$XDG_DATA_HOME/oh-my-zsh" -export ZSH_CUSTOM="$ZSH/custom" -export PLUGINS="$XDG_DATA_HOME/zsh/plugins" - # SUDO export SUDO_ASKPASS=/bin/rofi-askpass @@ -12,4 +7,8 @@ export XDG_CACHE_HOME="$HOME/.cache" export XDG_DATA_HOME="$HOME/.local/share" export XDG_CONFIG_HOME="$HOME/.config" +# Path to your oh-my-zsh installation. +export ZSH="$XDG_DATA_HOME/oh-my-zsh" +export ZSH_CUSTOM="$ZSH/custom" +export ZSH_PLUGINS="$ZSH_CUSTOM/plugins" diff --git a/.zshrc b/.zshrc index 5b1be4a..b09eab2 100644 --- a/.zshrc +++ b/.zshrc @@ -3,10 +3,8 @@ # colors #autoload -U colors && colors -# Alias/Binds/Profiles -[ -f ~/.config/zsh/profile/ ] && source ~/.config/zsh/profile -[ -f ~/.config/zsh/aliases ] && source ~/.config/zsh/aliases -[ -f ~/.config/zsh/keybinds ] && source ~/.config/zsh/keybinds +# Profiles +source ~/.config/zsh/profile # MOTDs pfetch @@ -54,10 +52,8 @@ else fi export BROWSER='firefox' export TERMINAL='urxvt' - # vim as manpager export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\"" - # vimrc export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' @@ -72,7 +68,12 @@ fast-syntax-highlighting #zsh-syntax-highlighting zsh-autosuggestions ) + source $ZSH/oh-my-zsh.sh +# Binds/Alias (Preventing from reverted to the original one) +[ -f ~/.config/zsh/aliases ] && source ~/.config/zsh/aliases +[ -f ~/.config/zsh/keybinds ] && source ~/.config/zsh/keybinds +#emulate -R zsh -c 'source $ZSH_PLUGINS/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' #source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null #source $ZSH_CUSTOM/plugins/fsh/fast-syntax-highlighting.plugin.zsh