-
Fork this repo and rename it to
dotfiles -
Install homeshick (remember to launch a new terminal to get the
homeshickcommand working) -
Clone your dotfiles and prezto (replace the
___)
homeshick clone git@github.com:___/dotfiles sorin-ionescu/prezto -
Set your shell to zsh
On macOS:- Install the latest zsh:
brew install zsh - Go into
System Preferences → Users & Groups - Unlock the panel
- Right click on your account and select
Advanced Options - Change the
Login shellfield to/usr/local/bin/zsh
On Linux:
apt-get install zshchsh --shell /usr/bin/zsh ___(replace___with your username)
- Install the latest zsh:
The prompt can change the color of the servername depending on whether you
are in a production or staging environment. It uses $SERVER_ENV to do that.
In order to set this property for all users you can add
/etc/profile.d/20_server_env to your servers, containing
SERVER_ENV=production or SERVER_ENV=staging. The default $HOME/.profile
and the one in this repo will automatically include all files placed in
/etc/profile.d/, so you can use it to e.g. add guards to various commands
that should be run with great care on production servers.
home/profile also uses this variable to test whether you are on a remote
server. This could very likely be achieved in a more elegant manner,
so feel free to send a PR.
Use this untracked file to adjust machine-specific environment variables.
e.g. a different email on your work computer vs. your home computer.
Example
export PATH=$PATH:$HOME/.local/bin
hash -d WINHOME=/mnt/c/Users/___
hash -d WS=~WINHOME/Workspace
export EMAIL="user@gmail.com"
- Replace
___@yourdomain.comwith your email
- Replace
EMAIL='___@yourdomain.com'with your email - Replace
DEFAULT_USER='___'with the username on your computer
- Replace
user.name = Full Namewith your proper name
- Replace
User ___with your username on remote servers
- Replace
___in the path toaws-unlock.shwith your own path. The config file does not support$HOMEor~. - Replace the role arn in the
roleprofile with your own role arn. - Create
config/aws/usercontaining your AWS user credentials like so:Encrypt it with gpgAWS_ACCESS_KEY_ID="......" AWS_SECRET_ACCESS_KEY="......"gpg --encrypt -r KEYID userto user.gpg and delete the original.
- Replace
___@yourdomain.comwith your gpg key identifier
- Install iTerm2
- Install Inconsolata-dz (if you prefer to use another font, make sure to get a version with powerline support)
- Enable
Preferences → Load preferences from a customer folder or URL:and set the path to/Users/___/.homesick/repos/dotfiles/config/iTerm(replace___with your username)