![]() I hope you like this post and I see you on the next one! External Sources This shell configuration helped me becoming more comfortable working with the terminal on Mac as it makes it very friendly and improved my workflow by making it quicker for me to program. ![]() We started by looking at how we could install it, setup its configuration, then we moved to installing Powerlevel10k, the powerline for zsh. Today we saw how we could use iTerm2 and zsh with Oh My Zsh. POWERLEVEL9K_MODE = "awesome-patched" POWERLEVEL9K_PYTHON_ICON = $' \U 1F40D'Īnd that concludes today’s post! Conclusion POWERLEVEL9K_LEFT_PROMPT_ELEMENTS =( dir vcs ) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS =(virtualenv ) POWERLEVEL9K_PROMPT_ADD_NEWLINE = true And this is helpful for understanding what can be customized and how to go about doing so.Export PATH = $HOME/bin:/usr/local/bin: $PATH export ZSH = "/Users/kim/.oh-my-zsh" ZSH_THEME = "powerlevel10k/powerlevel10k" ZSH_COLORIZE_STYLE = "emacs" plugins =( The following are just my custom settings for the theme and setup I desired which go into the almighty ~/.zshrc file: ZSH_THEME="powerlevel9k/powerlevel9k" POWERLEVEL9K_CONTEXT_TEMPLATE='%n' POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(time context dir vcs) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status ip ram battery) POWERLEVEL9K_STATUS_VERBOSE=false POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle" POWERLEVEL9K_SHORTEN_DIR_LENGTH=3 POWERLEVEL9K_PROMPT_ON_NEWLINE=true # Visual customisation of the second prompt line local user_symbol="❤️" if ] then user_symbol = "#" fi POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%$user_symbol " POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='red' COMPLETION_WAITING_DOTS="true" DISABLE_AUTO_UPDATE="true" CASE_SENSITIVE="true" POWERLEVEL9K_BATTERY_VERBOSE=true POWERLEVEL9K_BATTERY_LEVEL_BACKGROUND=(darkred orange4 yellow4 yellow4 chartreuse3 green3 green4 darkgreen) # changing the tab colors echo -e "\033]6 1 bg red brightness 18\a" echo -e "\033]6 1 bg green brightness 26\a" echo -e "\033]6 1 bg blue brightness 33\a" Source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh Step 5 Source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh plugins=(zsh-autosuggestions)Īlong with that it would be good to have some color for certain syntaxes too! Then chuck these two lines into your ~/.zshrc file as well: Combine that with aliases and you’re golden! And that’s how I got to including the autocomplete plugin. I thought the idea of having autocomplete in the terminal would be amazing as it would save typing and time and limit what I needed to remember to a certain degree. If you have any aliases, you can chuck them in as well! I have one for VSCode alias code="open -a /Applications/Visual\ Studio\ Code.app". If you’re coming from bash then you may want to include this too export PATH=$HOME/bin:/usr/local/bin:$PATH. Įxport ZSH=/Users//.oh-my-zsh export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 My theme wasn’t being automatically loaded when opening it up fresh so I added this in source ~/.oh-my-zsh/custom/themes/powerlevel9k/powerlevel9k.zsh-theme. Open up ~/.zshrcin your favorite text editor, or in vim in the terminal with vim ~/.zshrcand if you don’t have anything in yours - or if you don’t have one you can touch ~/.zshrc in the terminal- then you’re where I started off as well. Start off by reviewing the screenshots on this repo to see what some people have as theirs to better understand what you can customize, and what you may want for yourself. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |