From 42883ee0679ec7688ad76598f1ecfd9091e46245 Mon Sep 17 00:00:00 2001 From: juan Date: Tue, 9 Nov 2021 10:50:48 +0800 Subject: [PATCH] Zshrc and Sway update. .zshrc: add colorizer and autopair Sway: remove workspace_auto_back_and_forth --- .config/sway/config##hostname.T14s | 2 +- .zshrc | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.config/sway/config##hostname.T14s b/.config/sway/config##hostname.T14s index ae7a7c0..480dc73 100644 --- a/.config/sway/config##hostname.T14s +++ b/.config/sway/config##hostname.T14s @@ -62,7 +62,7 @@ bindsym XF86AudioPrev exec 'playerctl previous' #borders stuff default_border pixel 2 -workspace_auto_back_and_forth yes +#workspace_auto_back_and_forth yes force_display_urgency_hint 500 ms smart_borders no_gaps diff --git a/.zshrc b/.zshrc index 61364c9..0529593 100644 --- a/.zshrc +++ b/.zshrc @@ -7,21 +7,25 @@ echo '\033[0;34m @ '$HOST if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f" command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit" - command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \ + command git clone https://github.com/zdharma-continuum/zinit "$HOME/.zinit/bin" && \ print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \ print -P "%F{160}▓▒░ The clone has failed.%f%b" fi source "$HOME/.zinit/bin/zinit.zsh" +zinit ice lucid wait +zinit light zdharma-continuum/fast-syntax-highlighting +zinit ice lucid wait +zinit light agkozak/zsh-z +zinit ice lucid wait +zinit light zpm-zsh/colorize + zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh' zinit light sindresorhus/pure zinit light zsh-users/zsh-autosuggestions +zinit light hlissner/zsh-autopair zinit light zsh-users/zsh-history-substring-search -zinit ice lucid wait -zinit light zdharma/fast-syntax-highlighting -zinit ice lucid wait -zinit light agkozak/zsh-z autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit @@ -128,16 +132,12 @@ alias b='bat -n' alias btctl='bluetoothctl' alias cp='cp -iv' alias df='df -h' -alias diff='diff --color=auto' alias e='emerge' alias free='free -h' alias g='git' -alias grep='grep --color=auto' alias info="info --vi-keys" -alias ip='ip -color=auto' -alias la='ls -la --color=auto --human-readable' -alias ll='ls -l --color=auto --human-readable' -alias ls='ls --color=auto' +alias la='ls -la --human-readable' +alias ll='ls -l --human-readable' alias nya='doas' alias p='python' alias se='doas emerge'