Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vipe

Pipe in and out of $EDITOR.

Finally your editor is a real unix fellow, even if it doesn't support pipes at all.

See also https://github.com/juliangruber/go-vipe.

Example

# This will open an editor with the text "change me" loaded
$ echo change me | vipe | tr '[:upper:]' '[:lower:]'
CHANGED

demo

Installation

$ npm install -g juliangruber/vipe

Origin

This is a lightweight bash only version. For the original impementation in Perl, check https://github.com/madx/moreutils/blob/master/vipe.

Power combo with gist and cipherhub

With those functions in your ~/.bash_profile (change username):

cipherup(){
  cipherhub juliangruber | gist -pR | cut -d/ -f1-5
}

cipheredit(){
  curl -sL $1/raw | cipherhub | vipe | cipherhub juliangruber | gist -u $1
}

Store some secret data in a gist:

$ echo some secrets | cipherup
<GIST-URL>

And edit it again:

$ cipheredit <GIST-URL>

License

MIT

About

Pipe in and out of $EDITOR

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.