Add token grep
This commit is contained in:
parent
b9536828bf
commit
80fec56ce8
1 changed files with 3 additions and 3 deletions
6
.zshenv
6
.zshenv
|
|
@ -289,10 +289,10 @@ alias -s mkv="mplayer"
|
|||
alias -s mpg="mplayer"
|
||||
|
||||
# Functions
|
||||
function listvm() { curl -s --url http://vcloud.delivery.puppetlabs.net/vm/ ; }
|
||||
function getvm() { curl -d --url http://vcloud.delivery.puppetlabs.net/vm/$1 ; }
|
||||
function listvm() { curl -H "X-AUTH-TOKEN: $(grep vmpooler_token ~/.fog | cut -d ' ' -f 4)" -s --url http://vcloud.delivery.puppetlabs.net/vm/ ; }
|
||||
function getvm() { curl -H "X-AUTH-TOKEN: $(grep vmpooler_token ~/.fog | cut -d ' ' -f 4)" -d --url http://vcloud.delivery.puppetlabs.net/vm/$1 ; }
|
||||
function sshvm() { ssh -i ~/.ssh/id_rsa-acceptance root@$1 ; }
|
||||
function rmvm() { curl -X DELETE --url http://vcloud.delivery.puppetlabs.net/vm/$1 ; }
|
||||
function rmvm() { curl -H "X-AUTH-TOKEN: $(grep vmpooler_token ~/.fog | cut -d ' ' -f 4)" -X DELETE --url http://vcloud.delivery.puppetlabs.net/vm/$1 ; }
|
||||
args() { echo $#; }
|
||||
title() { WINTITLE="$*"; print -Pn "\e]0;$WINTITLE\a" }
|
||||
hl() { pbpaste | highlight --syntax=$1 -O rtf | pbcopy }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue