###History of my default shell
I started to learn C Shell because of the part-time job I had got during university. They were using FreeBSD as the default working environment. At the second year of the job, I tried Tcsh and Bash, then made Bash my default shell.
From time to time, I started to use Mac in recent years and also changed to use zsh.
###What is Z Shell ?
Zsh is a shell designed for interactive use, although it is also a powerful scripting language.
The reason I use zsh is all about Oh my zsh
###What is OH MY ZSHELL ?
oh-my-zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and few things that make you shout…
###How to Install?
Check Setup section
#Theme (with git status character)
#Aliases of zsh
alias zshconfig="vim ~/.zshrc"
alias ohmyzsh="vim ~/.oh-my-zsh"
alias rm='rm -i'
nvm use default
. <(npm completion)
Autojump - Very useful tool for jumping to path i’ve visit most
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
plugins=(brew copydir copyfile encode64 git node osx rsync sublime urltools vagrant)
brews: List installed brews
copydir & copyfile
copydir: Copy current directory
copyfile $file: Copy specific file
copypaste > [filename]to paste file/dir to whereever you want
encode64 myfile: Encode myfile, shortcut
decode64 myfile: Decode myfile, shortcut
- Enable a punch of alias and auto completion
empty_gh repo: Create empty Github repository repo
exist_gh repo: Add existed project to repository repo
node-docs domain: Open Node.js document of current version of node and go to domain section
- osx Very Useful
tab: Open new tab
vsplit_tab: Vertical split tab
split_tab: Horizontal split tab
pfd: Current directory of Finder
pfs: Current file of Finder
cdf: Change directory(cd) to current directory of Finder
pushdf: Remember current directory of Finder
quick-look myfile: Open a quick look window of myfile like selecting file in Finder
man-preview ls: Open a preview window with ls‘s manual
trash myfile: Move myfile to trash
vncviewer dummy.com: Open VNCViewer
- Easy to understand…
COMMAND path1 path2
st: Open Sublime Text2
stt: Open current directory in Sublime Text2
urlencode url: Encode URL
urldecode url: Decode URL
- Auto completion support
I only installed a few plugins. There’re still a lot of plugins you can use, please check the plugin list here.
After noting down all the plugin I’ve installed as a reminder. I decided to review all the supported plugins of Oh-my-zsh, I found out there’re so many ruby/rails related plugins. Maybe I could create some plugin for Node.js. Any ideas ? please tell me.