

⌘: command ⇧: shift ⌥: alt ^: control Tabs But after a couple days the Spotlight command becomes second-nature. No, there isn’t an ‘Alt + T’ equivalent unfortunately, only a wonky workaround. /./.' # git aliases and common git typos alias g = 'git' alias gti = 'git' alias gi = 'git' alias gco = 'git checkout' alias gst = 'git status' alias gcm = 'git commit -m' alias gamend = 'git commit -a -amend' alias gdeletemerged = 'git branch -merged | egrep -v "(^\*|master|dev)" | xargs git branch -d' # open in browser alias safari = "open -a safari" alias firefox = "open -a firefox" alias opera = "open -a opera" alias chrome = "open -a google\ chrome" alias canary = "open -a google\ chrome\ canary" # git log find by commit message glf ( ) # open current folder in finder alias f = 'open -a Finder' # hide/show all desktop icons (useful when presenting) alias hidedesktop = 'defaults write CreateDesktop -bool false & killall Finder' alias showdesktop = 'defaults write you can access iTerm from a quick spotlight search (⌘ + Space and type ‘iTerm’ then hit enter). # show only directories alias lsd = 'ls -l | grep "^d"' # show files and directories in as a table alias ll = 'ls -alF' # navigation shortcuts alias.

# enables my favorite oh-my-zsh plugins plugins = (git npm node extract yarn ) # instead of 'sudo ' you can use 'please ' alias please =sudo Add Plugins and AliasesĪdd your custom aliases and plugins to ~/.zshrc. How? Rather than opening a native full-screen app with the accompanying slow animation, iTerm instantly places a terminal over the desktop.
ITERM2 TIPS FULL
ITerm offers the option to disable “native full screen mode.” This makes it easy to switch back-and-forth between an editor and shell. It's quite controversial step, but it works perfectly for me. You can go to: Keys → Key Mappings and add key mappings you want. You can jump between words by sending some special characters in shell and iTerm2 can make it easier. If you have experienced typing very long command and you want to fix a typo in the middle, there are not that many choices but to keep pressing left arrow key until the cursor reaches where typo happens. If you want to have split screen of the current location you are working in go to Profiles → Working Directory -> Advanced Configuration. Different working directoriesīy default, splitting current screen in iTerm2 gives me new split screen in default location (which is user’s home directory) not in my current location. It's really useful when the output of the command is referring to some external resource. Hold Cmd key while clicking on the link in the terminal. Open links from terminal Hover while Cmd is pressed Learn iTerm2 Tips & Tricks Useful Hotkeys Keys

Import ermcolors to Profiles -> Colors in iTerm2 Settings.

I tried a lot of ZSH prompt themes and finally stayed with Pure. Read Become A Command-Line Power User With Oh My ZSH And Z It comes bundled with a hot of helpful functions, helpers and plugins that boost your productivity. My choice is ZSH and ZSH framework - Oh My ZSH. It's the most popular shell, but there are alternatives that make using the terminal faster and When you start a terminal application, by default it is running a shell called Bash. Let's start from replacing default Terminal.app by iTerm2, feature-packed and easily configurable solution that claimed to "do amazing things". Let's go thought all the steps I would do if I bought the new laptop and I need to configure everything from scratch. Terminal is not an exception and I'd like to share my configuration and tweaks. My productivity heavily depends on the tool belt I use.
