+ Tweaked Zsh, fixed zsh-syntax-highlight ZLE problem (need to put keybinds and aliases at the end of the config file)
This commit is contained in:
parent
3e8da79f5f
commit
df65182617
4 changed files with 13 additions and 12 deletions
|
@ -52,6 +52,7 @@ alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||||
alias cfvim='vim $XDG_CONFIG_HOME/vim/vimrc'
|
alias cfvim='vim $XDG_CONFIG_HOME/vim/vimrc'
|
||||||
alias cfbash='vim $HOME/.bashrc'
|
alias cfbash='vim $HOME/.bashrc'
|
||||||
alias cfzsh='vim $HOME/.zshrc'
|
alias cfzsh='vim $HOME/.zshrc'
|
||||||
|
alias cfxres='vim $HOME/.Xresources'
|
||||||
alias cfbsp='vim $XDG_CONFIG_HOME/bspwm/bspwmrc'
|
alias cfbsp='vim $XDG_CONFIG_HOME/bspwm/bspwmrc'
|
||||||
alias cfpoly='vim $XDG_CONFIG_HOME/polybar/config'
|
alias cfpoly='vim $XDG_CONFIG_HOME/polybar/config'
|
||||||
alias cfkeys='vim $XDG_CONFIG_HOME/sxhkd/sxhkdrc'
|
alias cfkeys='vim $XDG_CONFIG_HOME/sxhkd/sxhkdrc'
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/env zsh
|
#!/bin/env zsh
|
||||||
#bindkey '^ ' autosuggest-accept
|
bindkey '^ ' autosuggest-accept
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
#!/bin/zsh
|
#!/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
|
# SUDO
|
||||||
export SUDO_ASKPASS=/bin/rofi-askpass
|
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_DATA_HOME="$HOME/.local/share"
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
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"
|
||||||
|
|
||||||
|
|
13
.zshrc
13
.zshrc
|
@ -3,10 +3,8 @@
|
||||||
# colors
|
# colors
|
||||||
#autoload -U colors && colors
|
#autoload -U colors && colors
|
||||||
|
|
||||||
# Alias/Binds/Profiles
|
# Profiles
|
||||||
[ -f ~/.config/zsh/profile/ ] && source ~/.config/zsh/profile
|
source ~/.config/zsh/profile
|
||||||
[ -f ~/.config/zsh/aliases ] && source ~/.config/zsh/aliases
|
|
||||||
[ -f ~/.config/zsh/keybinds ] && source ~/.config/zsh/keybinds
|
|
||||||
|
|
||||||
# MOTDs
|
# MOTDs
|
||||||
pfetch
|
pfetch
|
||||||
|
@ -54,10 +52,8 @@ else
|
||||||
fi
|
fi
|
||||||
export BROWSER='firefox'
|
export BROWSER='firefox'
|
||||||
export TERMINAL='urxvt'
|
export TERMINAL='urxvt'
|
||||||
|
|
||||||
# vim as manpager
|
# vim as manpager
|
||||||
export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
||||||
|
|
||||||
# vimrc
|
# vimrc
|
||||||
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
|
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
|
||||||
|
|
||||||
|
@ -72,7 +68,12 @@ fast-syntax-highlighting
|
||||||
#zsh-syntax-highlighting
|
#zsh-syntax-highlighting
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
)
|
)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
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/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
||||||
#source $ZSH_CUSTOM/plugins/fsh/fast-syntax-highlighting.plugin.zsh
|
#source $ZSH_CUSTOM/plugins/fsh/fast-syntax-highlighting.plugin.zsh
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue