A mac is setup for the default user and usually requires a few things to make it into a development machine. It is certain that a fresh ubuntu install is more developer focused than a macbook. In this post I will walk you though what I do when setting up a new macbook for development.
- Install homebrew
- Install wget
- Install python with brew
- Download vs code
- Download the python extension for vscode
- Make tanner terminal the default
Then to improve on all bash (terminal), git and vim prompts etc we are going to use nicolas’s dotfiles, but to use that we have to install
xcode from the appstore first. Then you may need to follow this stackoverflow answer if you have previously just installed xcode-command-line tools
Issues with the dotfiles setup
A few issues after installing the dotfiles is:
- The annoying
doinksound when pressing
- The prompt is just showing the current location (it does not show currently logged in user and domain.
- When moving the cursor or backspacing, if you hold it down for half a second half the characters will be skipped or deleted.
doink sound when pressing
esc and then
: in vim
You change this sound in
Cursor Backspace Issue
To fix the cursor and crazy fast backspace issue:
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool true defaults write NSGlobalDomain InitialKeyRepeat -int 25 defaults write NSGlobalDomain KeyRepeat -int 6
Changing Prompt colour
Ensure to install the tanner terminal and make sure it is the default terminal theme.
The prompt is not as I expected
It is showing:
Folders and files with different permissions are not different colours
I added an alias to
alias ls='ls -G'
Relative paths are tab-completed to absolute paths
Terminal not exiting
Make the terminal exit when you type
exit and avoid this annoying exit that doesn’t actually exit:
You can fix this by changing the terminal settings