An approach to a Git configuration for a more real-world scenario is the topic of an another blog post of mine. This is just the very basic Git configuration that will most probably not suffice in practice. To set them, run the following commands in a terminal (substituting the author’s sample values): git config -global user name Michael Pellaton git config -global user email more configuration options, please refer to the Git documentation and to be able to work with GitHub repositories, follow their set-up guide. If unconfigured, it will derive them from the local user and computer names, which is almost certainly wrong. Git Configuration Git needs a user name and email to work properly. To see the difference, run git -version or svn -version before and after the installation. To install the latest stable versions using Homebrew, run the command brew install git svn. MacOS comes with Git and Subversion on board, but they are often quite dated. To install it run the following command, all on one line, in a terminal: /usr/bin/ruby -e “$(curl -fsSL )" Version Control Systems Add the following lines to the file ~/.bash_profile to have them on the Mac: alias ll=’ls -lh’ alias la=’ls -lah’ alias latr=’ls -lahtr’ alias cd.='cd. The example below shows the prompt of the author: export “Įxample prompt and coloured Bash output Aliasesįrequent Linux users might be used to comfort aliases like ll, la, and. Once you decided on your prompt, add the export PS1=.statement to the ~/.bash_profile file. The «Easy Bash Prompt Generator» offers drag & drop and gives an instant preview. Prompt Have a look at the manifold configuration possibilities of the Bash prompt and choose what you want to see and how it should be formatted. Bash configurationĬolored Bash Edit the file ~/.bash_profile (or create it if there is none) and add the following line to enable colored output in the Bash: export CLICOLOR=1 Set the opacity to 100% as a remedy.Ĭolor Scheme (Profile) To bring the terminal experience on the Mac a bit closer to what is known from Linux, we recommend the dark «Pro» profile tweaked with the font of your choice and a few of the colors replaced with slightly brighter ones. Transparency We found the terminal window’s slight transparency set by default to be distracting, especially when other terminal windows behind contain moving content like build output. Once you settled on a source code text font, configure it in the Terminal and all code editors. Monaco and Andale Mono (both included in macOS), Hack and Source Code Pro
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |