Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
d8a5fff1
Commit
d8a5fff1
authored
Mar 22, 2014
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #662 from walle/add_autocomplete_for_gas
Update the script to account for the changes in 0.1.7 where .gas is a dir
parents
95302af7
be6f0c90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
_gas
plugins/gas/_gas
+6
-1
No files found.
plugins/gas/_gas
View file @
d8a5fff1
...
@@ -13,6 +13,7 @@ case $state in
...
@@ -13,6 +13,7 @@ case $state in
cmds=(
cmds=(
"version:Prints Gas's version"
"version:Prints Gas's version"
"use:Uses author"
"use:Uses author"
"ssh:Creates a new ssh key for an existing gas author"
"show:Shows your current user"
"show:Shows your current user"
"list:Lists your authors"
"list:Lists your authors"
"import:Imports current user to gasconfig"
"import:Imports current user to gasconfig"
...
@@ -25,8 +26,12 @@ case $state in
...
@@ -25,8 +26,12 @@ case $state in
args)
args)
case $line[1] in
case $line[1] in
(use|delete)
(use|delete)
VERSION=$(gas -v)
if [[ $VERSION == <1->.*.* ]] || [[ $VERSION == 0.<2->.* ]] || [[ $VERSION == 0.1.<6-> ]] then
_values -S , 'authors' $(cat ~/.gas/gas.authors | sed -n -e 's/^.*\[\(.*\)\]/\1/p') && ret=0
else
_values -S , 'authors' $(cat ~/.gas | sed -n -e 's/^\[\(.*\)\]/\1/p') && ret=0
_values -S , 'authors' $(cat ~/.gas | sed -n -e 's/^\[\(.*\)\]/\1/p') && ret=0
;;
fi
esac
esac
;;
;;
esac
esac
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment