Use OSTYPE instead of uname whenever possible for better speed.

This commit is contained in:
Hong Xu 2016-10-05 01:06:59 -07:00
commit 630211852b
6 changed files with 9 additions and 9 deletions

View file

@ -1,4 +1,4 @@
if [[ $('uname') == 'Linux' ]]; then
if [[ "$OSTYPE" == linux* ]]; then
local _sublime_linux_paths > /dev/null 2>&1
_sublime_linux_paths=(
"$HOME/bin/sublime_text"