Posted on Leave a comment

Useful Git commands

I am tinkering with my Vim setup today and I notice that I could not update my plugin directories without going inside the specific directories. I had set all of the plugins as git submodules and I thought I get it but it seems I still don’t fully understand how this works .

From my understanding ,git submodules is suppose to make updating plugins easier by just using one command instead of going to each directory and doing a git pull inside.

I found a solution from stackoverflow though. Doing a git submodule foreach git clone master and a git submodule foreach git pull worked. I did not see this on the git wiki though. I wonder if this is a hack job. Still it works for me.

Posted on Leave a comment

Rediscovering the commandline with Zsh’s Bang!

I always do my thing on the commandline and I have never really mastered all the nifty power user stuff that ZSH provides.

One of this is the commandline editing command using the Bang (!) /exclamation point. This command saves one a lot of time retyping on the shell. This basically allows you to access the history file and do some cool manipulations like searching and editing.

Now I just need to practice this newly found power I have. Hurray to Zsh!