From: Andreas Gerler Date: Fri, 18 Dec 2015 14:17:05 +0000 (+0100) Subject: yasnippets for shell-mode and eshell-mode X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=a0de04b8ed4a0e8b52d75d4d5ec5197086dc5148;p=emacsconfig.git yasnippets for shell-mode and eshell-mode - first snippets for aws cli --- diff --git a/snippets/eshell-mode/aws-ec2-get-dns-names b/snippets/eshell-mode/aws-ec2-get-dns-names new file mode 100644 index 00000000..1548c517 --- /dev/null +++ b/snippets/eshell-mode/aws-ec2-get-dns-names @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: aws-ec2-get-dns-names +# key: aws-ec2-get-dns-names +# -- +aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ec2 describe-instances --filters "Name=tag:Name,Values=$2" --query "Reservations[].Instances[?State.Name=='running'].[InstanceId, PublicDnsName]" --output ${3:$$(yas-choose-value '("table" "text" "json"))} $0 diff --git a/snippets/eshell-mode/aws-ec2-instance-running b/snippets/eshell-mode/aws-ec2-instance-running new file mode 100644 index 00000000..c12b789b --- /dev/null +++ b/snippets/eshell-mode/aws-ec2-instance-running @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: aws-ec2-instance-running +# key: aws-ec2-instance-running +# -- +aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ec2 describe-instances --instance-ids $2 --query "Reservations[].Instances[].[InstanceId, State.Name]" --output ${3:$$(yas-choose-value '("table" "text" "json"))} $0 diff --git a/snippets/sh-mode/.yas-parents b/snippets/sh-mode/.yas-parents new file mode 100644 index 00000000..2de397c8 --- /dev/null +++ b/snippets/sh-mode/.yas-parents @@ -0,0 +1 @@ +eshell-mode diff --git a/snippets/shell-mode/.yas-parents b/snippets/shell-mode/.yas-parents new file mode 100644 index 00000000..2de397c8 --- /dev/null +++ b/snippets/shell-mode/.yas-parents @@ -0,0 +1 @@ +eshell-mode