mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
add idea plugin
This commit is contained in:
parent
c78277fd8b
commit
55447fb47d
1 changed files with 16 additions and 0 deletions
16
plugins/idea/idea.plugin.zsh
Normal file
16
plugins/idea/idea.plugin.zsh
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
local _idea_paths > /dev/null 2>&1
|
||||||
|
_idea_paths=(
|
||||||
|
"$HOME/Applications/IntelliJ IDEA 14.app"
|
||||||
|
"/Applications/IntelliJ IDEA 14.app"
|
||||||
|
"$HOME/Applications/IntelliJ IDEA 13.app"
|
||||||
|
"/Applications/IntelliJ IDEA 13.app"
|
||||||
|
"$HOME/Applications/IntelliJ IDEA 12.app"
|
||||||
|
"/Applications/IntelliJ IDEA 12.app"
|
||||||
|
)
|
||||||
|
|
||||||
|
for _idea_path in $_idea_paths; do
|
||||||
|
if [[ -a $_idea_path ]]; then
|
||||||
|
alias idea="open -a '$_idea_path'"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
Loading…
Add table
Add a link
Reference in a new issue