浏览代码

allow . in profile names

Frank Wittig 11 年之前
父节点
当前提交
e8aaab56b9
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      plugins/aws/aws.plugin.zsh

+ 1 - 2
plugins/aws/aws.plugin.zsh

@@ -37,9 +37,8 @@ function asp {
 }
 }
 
 
 function aws_profiles {
 function aws_profiles {
-  reply=($(grep profile $AWS_HOME/config|sed -e 's/.*profile \([a-zA-Z0-9_-]*\).*/\1/'))
+  reply=($(grep profile $AWS_HOME/config|sed -e 's/.*profile \([a-zA-Z0-9_\.-]*\).*/\1/'))
 }
 }
-
 compctl -K aws_profiles asp
 compctl -K aws_profiles asp
 
 
 if which aws_zsh_completer.sh &>/dev/null; then
 if which aws_zsh_completer.sh &>/dev/null; then