In *nix shells it sometimes useful to create aliases that receive parameters.
This can be done using functions:
Now you can type just something like: kssh 192.168.1.1 or pssh 192.168.1.2
Showing posts with label unix-tips. Show all posts
Showing posts with label unix-tips. Show all posts
Monday, November 23, 2015
Sunday, January 18, 2015
Pretty Format of JSON in vim
Open ~/.vimrc
Add the following line:
To format Json, type :Json
Note: you need Python installed.
Inspired by this post.
Add the following line:
command Json :%!python -m json.tool
To format Json, type :Json
Note: you need Python installed.
Inspired by this post.
Subscribe to:
Posts (Atom)