mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
fixes atom plugin to work on ubuntu/linux
This commit is contained in:
parent
ab18795f3c
commit
029d6fab82
1 changed files with 8 additions and 2 deletions
|
|
@ -5,10 +5,16 @@ _atom_paths=(
|
||||||
)
|
)
|
||||||
|
|
||||||
for _atom_path in $_atom_paths; do
|
for _atom_path in $_atom_paths; do
|
||||||
if [[ -a $_atom_path ]]; then
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||||
|
alias at="/usr/bin/atom"
|
||||||
|
elif [[ -a $_atom_path ]]; then
|
||||||
alias at="open -a '$_atom_path'"
|
alias at="open -a '$_atom_path'"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
alias att='at .'
|
alias att='at .'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue