12/16/2023 0 Comments Iterm themeOne might want to open a tmux session automatically, to do so, select in the General tab under Command ‘Login shell’ and enter the ‘Send text at start_‘: ‘ tmux _new’. There, select the appropriate profile or create one. Open iTerm2 preferences and navigate to Profiles. There is, however, some configuring to do to get a true color scheme working on a terminal emulator like iTerm, especially when combined with a terminal multiplexer like tmux. When working a lot in the terminal, one might want to borrow a piece of this visual experience in the form of an attractive true color terminal. The GUI, however, treated us with elegant visuals and a clear design that made working with it a comfortable experience that is easy on the eye. It is fast and agile and allows you to do get things done that would have taken you much more time than when you are limited to using the graphical user interface alone. If you find this article useful, leave a comment.The terminal can be an effective workhorse for achieving a job. Additional Powerlevel9k configuration and attributes.Additional configuration can be added by modifying the config file.Additional user-defined iTerm configuration.These commands are used to set the correct PATH to our user installed Python version and link our terminal so that it knows that when we call the Python environments it needs to use the one we installed, rather than the MacOS one. In fact, we used this command to modify the. For more information regarding virtualenvwrapper head here: Echo commandsĮcho commands are used to print text output and/or write text in a file. By using them, we can safely initialize multiple Python environments that work independently, without impacting the MacOS Python system. Pyenv and virtualenv wrapper are two tools that work hand-in-hand to create version controlled environments for Python. ruby, node, etc.) I tend to search for installations that use Homebrew because it does the heavy lifting for us. Whenever I want to explore a new python tool or a new language (e.g. Homebrew is a package manager and personally my preferred way to install packages on a Mac. Not much to add here, it is a requirement if you want to write code on your Mac Homebrew Xcode is a fundamental developing tool for developers on Mac. source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh.POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=’red’.POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=”%f”.POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time).POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir rbenv vcs).At the end of the config file add the following lines.Search for the string plugins = (…) and add “zsh-autosuggestions” within parenthesis.Search for the string “ZSH_THEME = …” and modify the line with “ZSH_THEME=”powerlevel9k/powerlevel9k”.Follow the steps below to finalise the prettification! To activate and configure all the plugins we installed at the beginning, we need to tinker with the configuration file. ITerm2 → Preferences → Profiles → Text → Change Font Configuring iTerm plugins I’m using “Meslo Slashed” for this tutorial. Visit /powerline/fonts to choose your favourite font. ITerm → Preferences → Profiles → Colors → Color presets → Import → import the file you downloaded Visit iterm2colorschemes and pick your favourite colour scheme. $ git clone $ZSH_CUSTOM/plugins/zsh-autosuggestions $ sh -c " $(curl -fsSL ) " $ git clone ~/.oh-my-zsh/custom/themes/powerlevel9k Here change with the name of the folder in which you want to start your project To create and activate a new virtual environment: You now have a working virtual environments ready to use. ~/.pyenv/versions/3.7.7/bin/virtualenvwrapper.sh ' >. $ echo ' export WORKON_HOME =~/.virtualenvs ' >. $ $(pyenv which python3) -m pip install virtualenvwrapper keep the "$" while copying the command line $ export LDFLAGS = "-L/usr/local/opt/zlib/lib -L/usr/local/opt/sqlite/lib" $ export CPPFLAGS = "-I/usr/local/opt/zlib/include -I/usr/local/opt/sqlite/include" - here you can choose the Python version you want to install $ pyenv install 3.7.7 ![]() ![]() $ echo -e 'if command -v pyenv 1>/dev/null 2>&1 then\n eval "$(pyenv init -)"\nfi' > ~/.zshrc $ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' > ~/.zshrc $ echo 'export PYENV_ROOT="$HOME/.pyenv"' > ~/.zshrc $ xcode-select -install $ ruby -e " $(curl -fsSL ) " $ brew install python
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |