mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +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
|
||||
if [[ -a $_atom_path ]]; then
|
||||
alias at="open -a '$_atom_path'"
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
alias at="/usr/bin/atom"
|
||||
elif [[ -a $_atom_path ]]; then
|
||||
alias at="open -a '$_atom_path'"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
alias att='at .'
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue