+ 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 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'
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/env zsh
|
||||
#bindkey '^ ' autosuggest-accept
|
||||
bindkey '^ ' autosuggest-accept
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
13
.zshrc
13
.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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue