From adab24d93f7ed68a23add374735f2effab62a81c Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Sun, 11 Aug 2024 01:44:58 -0400 Subject: [PATCH] update: zshrc --- .zshrc_ohmyzsh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.zshrc_ohmyzsh b/.zshrc_ohmyzsh index c558bf7..a1d2802 100644 --- a/.zshrc_ohmyzsh +++ b/.zshrc_ohmyzsh @@ -42,7 +42,7 @@ export PATH=$HOME/.cargo/bin:$HOME/.local/bin:/usr/local/bin:$PATH export LANG=en_US.UTF-8 -export EDITOR='vim' +export EDITOR='nvim' export MAKEFLAGS='-j$(nproc)' export CFLAGS='-march=native -O2 -pipe' @@ -55,8 +55,16 @@ alias wakemac="wakeonlan 18:C0:4D:8D:56:0E" alias ls="eza --icons=auto" alias githashselector="git log --oneline | gum filter | cut -d' ' -f1" alias bat="bat --paging=never" +alias code="code --ozone-platform=wayland --enable-wayland-ime" # fix ssh if in kitty -[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh" +if [[ "$TERM" == "xterm-kitty" && -z "$SSH_CONNECTION" ]]; then + alias ssh="kitty +kitten ssh" +fi + +# ----------------------------------------------------- +# Completion +# ----------------------------------------------------- +[[ -f /home/wyj/.dart-cli-completion/zsh-config.zsh ]] && . /home/wyj/.dart-cli-completion/zsh-config.zsh || true # ----------------------------------------------------- # evals