Carlos Cuesta's personal dotfiles, that contains all the OS X sensible defaults that I use, must have software and packages, and of course my .files for my OS X system.
Setup / Demo / Customization / Homebrew / Functionality
I’ve made a script to make the setup process easy.
Copy this command into the terminal, and the setup will start.
git clone https://github.com/carloscuesta/dotfiles && cd dotfiles && ./setup.sh
And that’s all! 👍
The setup process will :
- Set up OS X computer info (ComputerName, HostName, LocalHostName).
- Set custom OS X preferences and defaults.
- Set ZSH shell and Oh-My-Zsh.
- Customize ZSH with Oh-My-Zsh.
- Install the .dotfiles (aliases, functions, exports, extra, zshconfig, gitconfig).
- Install Xcode Command Line Tools (vcs’s like git and compilers).
- Help you to start with setup of Git.
- Backup all the files that are going to be modified.
- Install Homebrew (brew)
- Install packages and software through brew(software and packages list).
The dotfiles will be stored on a folder called ~/.dotfiles/
in your home directory, except for the zsh files that will be at ~/
and the Oh-My-Zsh themes on ~/.oh-my-zsh/themes/
.
Once the installation process finishes, you will be asked for a restart, some changes may require a restart to apply it.
You can customize this setup in two ways, the appearance and the functional parts.
To customize the visual part of the terminal. You will need to install a theme. An iTerm theme has been provided.
I use a theme called materialshell.
If you want to change the iTerm’s 2 theme, go to iTerm Preferences > Profiles > + (Create a new profile) > Colors > Load Presets > Import > (Select the theme)
.
Set as default the profile with the theme you like selecting it and going to Profiles > Other Actions ... > Set as default
.
If you want to change OS X Terminal theme, go to Terminal Preferences > Gear Icon > Import
.
Set as default the profile with the theme you like selecting it and clicking on Default
button.
The dotfiles script will ask to install the following packages and software:
Developer
- Node & npm (using the recommended installation method).
- Nodemon
- Gulp
- Webpack
- Xo
- Gitmoji-cli
- React-native-cli
OSX Software
- iTerm
- Smcfancontrol
- Spectacle
- Dropbox
- Slack
- Skype
- gfxCardStatus
- Google Chrome
- Firefox Developer Edition
You can change the functionality of every single file included in my dotfiles repo. Going to the ~/.dotfiles/
folder and editing the .files.
-
.aliases
: Includes the aliases (e.g.lock
,c
,~
,..
,myip
) -
.exports
: Includes the exports path. -
.functions
: Includes the functions (e.g.server
,extract
) -
.extra
: This is a blank file loaded with .zshrc. Inside of them you can put whatever you want custom functions, aliases, commands that you not want to include in the repository and override the other files. -
.zshrc
: Includes the zshell configuration. -
.gitconfig
: Includes the git configuration.
subl ~/.dotfiles/.extra
# .extra file
alias c='clear' # Clear terminal display
function md() {
mkdir -p "$1" && cd "$1";
}
# add whatever you want, and info that shouldn't be in a repository
Inspiration and code was taken from many sources, including:
- @mathiasbynens (Mathias Bynens) https://github.com/mathiasbynens/dotfiles
- @alrra (Cãtãlin Mariş) https://github.com/alrra/dotfiles
- @paulirish (Paul Irish) https://github.com/paulirish/dotfiles
- @nathaniellandau (Nathaniel Landau)
The code is available under the MIT license.