Skip to content

Instantly share code, notes, and snippets.

@orenyomtov
orenyomtov / slack_rtl_support_mac.sh
Created April 18, 2018 12:07
Add RTL support for Slack on Mac
# Prerequisites: Node.js
# Node.js can be installed using brew (https://brew.sh/) by running:
# brew install node
sudo echo "Killing Slack"
kill -9 $(ps aux | grep 'Slack' | awk '{print $2}')
echo "Installing asar"
npm install -g asar
@Ddorda
Ddorda / slack_rtl_support_win.ps1
Last active April 22, 2018 07:06
Add RTL support for Slack on Windows
# Based on: slack_rtl_support_mac.sh By Oren Yomtov: https://gist.github.com/orenyomtov/3d0f2412afa1c4a9eb207d3d4310e988
# Tested on Win10
# Prerequisites: Node.js
# Node.js can be downloaded from: https://nodejs.org/en/download/
# if can't run scripts, open powershell an run:
# cat path/to/script.ps1 | powershell
Write-Output "Getting Slack Directory"
$slackdir = Get-Process -name 'slack' | Select-Object -First 1 | Select -ExpandProperty "path" | Split-Path