the following commands assume that you have the awscli command installed on your mac. if you don’t then just type in brew install awscli. having awscli auto-complete is easier than the az cli because it ships with the aws_completer command. we find the aws_completer and register it to auto-load in our .zshrc. the following command does this. restart your zsh (cmd+q) after entering this command.
(more…)Category: Shell
shell scripting and the tools that live in the terminal: bash, awk, vim.
-
until … done loop in gnu/bash
bash has three types of loop constructs
(more…)
– for
– while
– until
until loop is used to iterate over the body of the loop till the condition stays false. -
unexport/remove a variable in the shell
say you have assigned some value to a variable from the shell or a shell script using the export command and now you want to remove that variable, either programatically or manually.
(more…) -
awk tricks
some of the awk tricks listed here. might come in handy in any of my future shell scripts.
(more…) -
my .vimrc file
everybody has their own distinct style of using the editor of their choice. when i am using vim, i prefer to have the following defined in the .vimrc file in the root directory of my user on gnu linux/mac os.
use .vimrc to save your vi settings if you prefer using the plain old vi instead.
(more…)