/dotfiles

Personal settings for OS X with tweaked zsh, tmux, git, vim etc.

Primary LanguageVim ScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

dotfiles

Slimmed down version of dotfiles edited by rtfpessoa with some changes for personal setup on Mac OS and Ubuntu.

Summary

Opinionated dotfile repo that will make your heart sing

Supports

  • Ubuntu 18.04
  • MacOS Catalina

Requirements

  • curl
  • ruby (with rake)
  • git

Setup

Install

To prepare Ubuntu in Dell XPS 15 9570

bash -c "$(curl -fsSL https://raw.githubusercontent.com/JackHack96/dell-xps-9570-ubuntu-respin/master/xps-tweaks.sh)"

To setup the dotfiles

bash -c "`curl -fsSL https://raw.githubusercontent.com/dreigada/dotfiles/master/dotfiles.sh`" -s -c install

The installation directory is $HOME/.$(whoami)rc

Upgrade

Upgrading is easy.

./dotfiles.sh -c update

Uninstall

  1. Automated part
./dotfiles.sh -c uninstall

NOTE: This only removes the main shell files symlinked by the installer.

  1. Manual part
  • MacOS
    • Uninstall homebrew and all its dependencies
      • curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall | ruby
    • Revert Terminal settings
    • Revert iTerm settings
    • Remove extra keyboard layouts from '$HOME/Library/Keyboard Layouts'
  • Ubuntu
    • Remove the installed packages
      • Check 'install_ubuntu_packages' in Rakefile

Usage

usage: dotfiles.sh -c (install | update | uninstall) [options]

options:

  -a ask before execute each step
  -u [<URL>] set the url for the origin repository to install
  -d [<DEST_PATH>] set the destination directory to install
    IMPORTANT: if you change the default directory, you need to set
               `DOTFILES` before the shell is loaded
               ex: export DOTFILES=/Users/me/.merc
  -f force the installation on update

Features

  • Just in MacOS
  • Both
    • Jabba with Java JDK 8 global version setup
    • Rbenv with Ruby global version setut
    • Nodenv with NodeJS global version setup
    • Pyenv with Python global version setup
    • Vim mode and bash style Ctrl-R for reverse history finder
    • Tmux with optimized configuration and powerline status
    • Git with a nice .gitconfig, .gitmessage and .gitignore
    • Fish and Bash powerline themes with git status and rebase state
    • Other personal tweaks and aliases

Configure

Fish / Bash

Shells have some default configs inside shells/** that you need to edit before using

Others programs

If you look in the root folder you will find other configs you can customize

Contribute

Any suggestions or improvements should be just send a pull request and it will be evaluated.

If you just want to have your own settings fork this project and customize as you wish.