addet syntax highlighting for init
This commit is contained in:
parent
2d647e8ca9
commit
1b216d4cfb
1 changed files with 10 additions and 2 deletions
12
.zshrc
12
.zshrc
|
@ -75,11 +75,19 @@ _init (){
|
||||||
if command_exists zoxide; then
|
if command_exists zoxide; then
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ─< environment variables for zsh >──────────────────────────────────────────────────────
|
||||||
local zconf="$HOME/.zsh"
|
local zconf="$HOME/.zsh"
|
||||||
local zAutosg="$zconf/autosuggestions/zsh-autosuggestions.zsh"
|
local zAutosg="$zconf/autosuggestions/zsh-autosuggestions.zsh"
|
||||||
local zSynthl="$zconf/syntax-highlighting/zsh-syntax-highlighting.zsh"
|
local zSynthl="$zconf/syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||||
[[ -f "$zAutosg" ]] &&
|
local _pluginlist=("$zAutosg" "$zSynthl")
|
||||||
. $zAutosg
|
|
||||||
|
# ─< init plugis >────────────────────────────────────────────────────────────────────────
|
||||||
|
for zPlug in "${_pluginlist[@]}"; do
|
||||||
|
[[ -f "$zPlug" ]] &&
|
||||||
|
. $zPlug
|
||||||
|
done
|
||||||
|
|
||||||
p_has() {
|
p_has() {
|
||||||
if ! command_exists has; then
|
if ! command_exists has; then
|
||||||
inst_has() {
|
inst_has() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue