![]() I really like Material Design so I also use it in iTerm thanks to this iTerm2 color scheme. zsh-syntax-highlighting: provides syntax highlighting for the shell zsh, red for invalid and green for valid commands:.zsh-autosuggestions: suggests commands as you type based on history and completions.web-search: adds aliases for searching with Google, Wiki, Bing, YouTube and other popular services.bgnotify: cross-platform background notifications for long running commands.npm: provides completion as well as adding many useful aliases for npm.docker: adds auto-completion for docker.brew: adds several aliases for common brew commands.git: provides many aliases and a few useful functions for git.Some words about the used plugins, here you can find a list of all available Oh My ZSH plugins: I use the avit theme but there are many other cool themes available. alias zshconfig= "nano ~/.zshrc" alias ohmyzsh= "nano ~/.oh-my-zsh" alias gpf= 'git push -f' # Docker alias alias dkps= "docker ps" alias dkst= "docker stats" alias dkpsa= "docker ps -a" alias dkimgs= "docker images" alias dkcpup= "docker-compose up -d" alias dkcpdown= "docker-compose down" alias dkcpstart= "docker-compose start" alias dkcpstop= "docker-compose stop" # Kubectl alias alias kdev= 'kubectl -n dev' alias kpg= 'kubectl -n playground' alias ktest= 'kubectl -n test' alias kprod= 'kubectl -n prod' alias kpreprod= 'kubectl -n preprod' # For a full list of active aliases, run `alias`. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. plugins=( git brew docker npm osx bgnotify zsh-syntax-highlighting zsh-autosuggestions web-search ) source $ZSH /oh-my-zsh.sh # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. # See ZSH_THEME= "avit" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. Optionally, if you set this to "random" # it'll load a random theme each time that oh-my-zsh is loaded. export ZSH=/Users/mhoffman/.oh-my-zsh # Set name of the theme to load. export PATH= $HOME /bin:/usr/local/bin: $PATH export JAVA_HOME= "/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/" # jenv export PATH= " $HOME /.jenv/bin: $PATH " eval "$(jenv init -)" # Path to your oh-my-zsh installation. # If you come from bash you might have to change your $PATH. You can install it using this terminal command: Use - to quickly navigate between your last and current path.Example: take testFolder is the same as mkdir testFolder & cd testFolder take command creates a new directory and changes the path to it.) / (for root directory) and ~ (for home directory) You can omit the cd (change directory) command.Use alias commands, you can get a list of all available alias by running alias in your terminal.Autocompletion by pressing Tab key which allows selecting available directories, commands and files.You can enrich ZSH by using the Oh My ZSH framework which provides some functionality that will boost your productivity: Since macOS Catalina (10.15.2) the default shell is now ZSH instead of Bash. Paste history that shows everything you’ve pasted into the terminal.Different user profiles to save your window arrangements and more.Register a hotkey that brings the terminal to the foreground when you're in another application.Split your terminal into multiple panes which you can switch by hotkeys.Open up iTerm2 preferences (⌘ + ,) -> Profiles -> Keys -> Click on + icon (add new Keyboard shortcut). iTerm is not set up to work with these shortcuts by default but here's how you set them up: You might be familiar with shortcuts to skip a word (⌥) or go to start/end of the line (⌘). If you're using BASH instead of ZSH you can add export CLICOLOR=1 line to your ~/.bash_profile file for nice coloring of listings.Source Code Pro can be downloaded using Homebrew brew tap homebrew/cask-fonts & brew install -cask font-source-code-pro Change the font to 14pt Source Code Pro Lite.Change the cursor text and cursor color to yellow make it more visible.Download one of iTerm2 color schemes and then set these to your default profile colors.Go to profiles -> Default -> Terminal -> Check silence bell to disable the terminal session from making any sound.Set hot-key to open and close the terminal to command + option + i.Here are some suggested settings you can change or set, they are all optional. Use Homebrew to download and install: brew install -cask iterm2 ![]() It's highly customizable and comes with a lot of useful features. ITerm2 is an open source replacement for Apple's Terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |