From 43de5ff9f91d0a45b9cc3ba00ec012c94c95d9b6 Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Sat, 4 Apr 2020 13:27:37 +0800 Subject: zsh: Set EDITOR to nvim and source oh-my-zsh.sh --- zsh/.zprofile | 3 ++- zsh/.zshrc | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'zsh') diff --git a/zsh/.zprofile b/zsh/.zprofile index a4514ae..200d6a8 100755 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -7,7 +7,8 @@ source /etc/zsh/zprofile #export TERM=xterm-256color -export EDITOR="emacsclient -c" +#export EDITOR="emacsclient -c" +export EDITOR="nvim" export DEFAULT_USER=peter diff --git a/zsh/.zshrc b/zsh/.zshrc index b985a32..924de2a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -41,6 +41,11 @@ zplug romkatv/powerlevel10k, use:powerlevel10k.zsh-theme fpath+=~/.zfunc +autoload -Uz compinit +compinit + +source $ZSH/oh-my-zsh.sh + if [ "$TERM" = "linux" ]; then _SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p' for i in $(sed -n "$_SEDCMD" $HOME/.Xresources | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}'); do @@ -50,8 +55,6 @@ if [ "$TERM" = "linux" ]; then fi if type "kitty" > /dev/null; then - autoload -Uz compinit - compinit # Completion for kitty kitty + complete setup zsh | source /dev/stdin -- cgit v1.2.3