From 3535ce170783a29e3b7c79c0ca48df3a76ca39d1 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Wed, 29 Jun 2022 13:01:07 +0800 Subject: [PATCH] bash: add alias for nvimpager and nvim --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 0f6fbe1..a0bc77a 100644 --- a/.bashrc +++ b/.bashrc @@ -42,7 +42,12 @@ alias grep='grep --color=auto' alias sftp='sftp -p -o Compression=no' -[ -f /usr/bin/vimpager ] && alias less=vimpager +if command -v nvimpager >/dev/null;then + alias less=nvimpager +elif command -v vimpager >/dev/null;then + alias less=vimpager +fi +command -v nvim >/dev/null && alias vim=nvim alias sway="env LC_ALL=zh_TW.utf8 sway" alias mcshl="env ALSOFT_DRIVERS=alsa $_GCOMPAT_PRELOAD _JAVA_OPTIONS=\"-Dawt.useSystemAAFontSettings=lcd -Xmn512m -Xms2G -Xmx2G -XX:+UseTransparentHugePages -XX:MaxGCPauseMillis=50 -XX:+UseZGC $_JAVA_OPTIONS\" mcshl" alias tstoggle="swaymsg input 1267:9454:ELAN24EE:00_04F3:24EE events toggle" -- 2.45.2