Archived
0
0
Fork 0

remove discord presence under wsl (was slow anyways)

This commit is contained in:
Daryl Ronningen 2022-07-22 23:36:20 -05:00
parent 566481796b
commit 6f66780697
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
3 changed files with 2 additions and 23 deletions

@ -1 +1 @@
Subproject commit 791068797cee976bc526f8cae8e8a653d1b3a86e Subproject commit 8e4cb972dc49146790862fbfc45aaff6df0bdec3

21
.zshrc
View file

@ -105,27 +105,6 @@ gitlog() {
setterm -linewrap on setterm -linewrap on
} }
# Enable Discord RPC in WSL
if uname -r | rg 'Microsoft' ; then
nvim() {
pidof sudo > /dev/null
if [ $? -ne 0 ]; then
sudo socat UNIX-LISTEN:/var/run/discord-ipc-0,fork,group=discord,umask=007 EXEC:"npiperelay.exe -ep -s //./pipe/discord-ipc-0",nofork &
fi
command nvim "$@"
while true; do
pidof nvim >/dev/null
if [ $? -ne 0 ]; then
sudo killall -9 socat
sudo killall -9 npiperelay.exe
sudo rm -rfv /var/run/discord-ipc-0
break
fi
done
}
fi
# Load nvm # Load nvm
source /usr/share/nvm/init-nvm.sh source /usr/share/nvm/init-nvm.sh

2
AUR

@ -1 +1 @@
Subproject commit 90e913bb065918e7ee8e1874856e3a9b5fb30298 Subproject commit b891beb59a88ac643bd0db704d03cd35ba758280