diff options
| author | Peter Son Struschka <me@peter-struschka.com> | 2020-04-04 13:27:37 +0800 |
|---|---|---|
| committer | Peter Son Struschka <me@peter-struschka.com> | 2020-04-04 13:27:37 +0800 |
| commit | 43de5ff9f91d0a45b9cc3ba00ec012c94c95d9b6 (patch) | |
| tree | 978800d532ff2565ff79b90457efe0aab41d1bb1 | |
| parent | 48ba5497740931e9099088b6a351be0519a76bee (diff) | |
| download | dotfiles-43de5ff9f91d0a45b9cc3ba00ec012c94c95d9b6.tar.gz dotfiles-43de5ff9f91d0a45b9cc3ba00ec012c94c95d9b6.tar.bz2 dotfiles-43de5ff9f91d0a45b9cc3ba00ec012c94c95d9b6.tar.lz dotfiles-43de5ff9f91d0a45b9cc3ba00ec012c94c95d9b6.tar.xz dotfiles-43de5ff9f91d0a45b9cc3ba00ec012c94c95d9b6.tar.zst dotfiles-43de5ff9f91d0a45b9cc3ba00ec012c94c95d9b6.zip | |
zsh: Set EDITOR to nvim and source oh-my-zsh.sh
| -rwxr-xr-x | zsh/.zprofile | 3 | ||||
| -rw-r--r-- | zsh/.zshrc | 7 |
2 files changed, 7 insertions, 3 deletions
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 @@ -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 |
