From ef05b269e3f3df0ebfb127b7607a8b7a2bdc35c9 Mon Sep 17 00:00:00 2001 From: agryphus Date: Sun, 15 Oct 2023 15:47:29 -0400 Subject: [PATCH] Run neovim inside FHS compliant environment --- .config/zsh/.zshrc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 6bf70b7..1425172 100755 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -18,14 +18,10 @@ alias spotify='spotify-launcher' alias spotify-launcher='dlkiller spotify-launcher' alias zoom='dlkiller zoom' alias tor='torbrowser-launcher' - -# Some wsl stuff -alias clip=/mnt/c/Windows/System32/clip.exe -alias vcxsrv='/mnt/c/Program\ Files/VcXsrv/vcxsrv.exe :0 -clipboard -wgl -keyhook' -alias wsl_startx="export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0.0 && \ - export LD_LIBRARY_PATH=/usr/lib/wsl/lib && \ - export LIBGL_ALWAYS_SOFTWARE=1 && \ - . ~/.config/X11/xinitrc" +if [ ! -z "$(grep nixos /etc/os-release)" ]; then + # NixOS specific aliases + alias nvim='fhs-run nvim' +fi # Print out all colors alias colors='for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$"\n"}; done'