.files, including init/macos — sensible hacker defaults for OS X and Linux
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 209 commits ahead, 6 commits behind mathiasbynens:master.
Permalink
Failed to load latest commit information.
.bundle bundler should always use https for github May 14, 2018
.gnupg few changes in gpg.conf Jun 6, 2018
.mc Provide mc support, provide a way to install janus for vim, documenta… Aug 25, 2015
.vim Use `.gitkeep` to track empty directories May 10, 2017
bin markdownize the web! May 8, 2017
init install fpp (Facebook Path Picker) Apr 30, 2018
.aliases dnson and dnsoff to enable/disable usage of local dnscrypt service Sep 28, 2018
.bash_profile Introduce dotconf, make network interface configurable Aug 9, 2018
.bash_prompt Merge branch 'master' of https://github.com/mathiasbynens/dotfiles May 21, 2016
.bashrc read ~/.path even in non-interactive shells Jul 11, 2016
.curlrc .curlrc: Add back `connect-timeout` Jan 5, 2015
.dircolors Few changes merged from paulirish/dotfiles Jun 24, 2015
.dotconf.example Introduce dotconf, make network interface configurable Aug 9, 2018
.editorconfig Add `.editorconfig` Jun 16, 2014
.exports Introduce dotconf, make network interface configurable Aug 9, 2018
.functions Merge branch 'master' of github.com:jooray/dotfiles Aug 10, 2018
.gdbinit Add .gdbinit Nov 14, 2014
.gitattributes .gitattributes: Disable normalizing line endings globally Jul 4, 2013
.gitconfig Merge branch 'master' of https://github.com/mathiasbynens/dotfiles Nov 1, 2017
.gitignore Ignore more git files Jun 24, 2015
.gvimrc also gvimrc should be included in janus migration Aug 25, 2015
.gvimrc.after install macvim and powerline fonts, configure macvim to use the fonts Oct 14, 2016
.hgignore Use newlines at EOF consistently Mar 10, 2013
.hushlogin Use newlines at EOF consistently Mar 10, 2013
.inputrc Ctrl-left, ctrl-right - move on readline input by word Jun 24, 2015
.irbrc irb configuration May 8, 2017
.pythonrc few defaults from dotphiles project Aug 25, 2015
.screenrc Solarized colors for screen Mar 17, 2016
.tmux.conf Change tmux config for https://github.com/gpakosz/.tmux Apr 30, 2018
.tmux.conf.local Change tmux config for https://github.com/gpakosz/.tmux Apr 30, 2018
.vimrc integrate Janus with sane defaults for Janus-less homedirs Aug 25, 2015
.vimrc.after I don't like tabs, two spaces are nicer Jul 25, 2017
.wgetrc I like wget showing a progress-bar, not dots Feb 24, 2015
EXAMPLES.md remove examples that don't work anymore Apr 30, 2018
LICENSE-MIT.txt my dotfiles Feb 22, 2015
README.md Introduce dotconf, make network interface configurable Aug 9, 2018
bootstrap.sh Added EXAMPLES.md inspired by https://github.com/dominee/Termux-dotfiles Feb 16, 2017

README.md

Juraj’s dotfiles

Forked from Mathias.

Installation

Warning: If you want to give these dotfiles a try, you should first fork this repository, review the code, and remove things you don’t want or need. Don’t blindly use my settings unless you know what that entails. Use at your own risk!

Using Git and the bootstrap script

You can clone the repository wherever you want. (I like to keep it in ~/dotfiles) The bootstrapper script will pull in the latest version and copy the files to your home folder.

git clone https://github.com/jooray/dotfiles.git && cd dotfiles && source bootstrap.sh

To update, cd into your local dotfiles repository and then:

source bootstrap.sh

Alternatively, to update while avoiding the confirmation prompt:

set -- -f; source bootstrap.sh

Git-free install

To install these dotfiles without Git:

cd; curl -#L https://github.com/jooray/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,LICENSE-MIT.txt}

To update later on, just run that command again.

Specify the $PATH

If ~/.path exists, it will be sourced along with the other files, before any feature testing takes place.

Here’s an example ~/.path file that adds /usr/local/bin to the $PATH:

export PATH="/usr/local/bin:$PATH"

Fast setup

If you don't want to read about Sensible macOS defaults, Janus install, and homebrew setup, you can get fast results with

./init/init.sh

Sensible macOS defaults

When setting up a new Mac, you may want to set some sensible macOS defaults:

./init/macos

Install Homebrew formulae

When setting up a new Mac, you may want to install some common Homebrew formulae (after installing Homebrew, of course). I also use brew cask for binary applications, because it's easier to autoupdate everything using update alias using homebrew then letting each and every app notify my about updates.

./init/brew.sh && ./init/brew-cask.sh

Install Janus for vim

Janus is a dotfiles framework for vim. The integration is there by default and you can use it with:

./init/install-janus.sh

If you don't install Janus, dotfiles will try to fallback to some sensible vim defaults.

Add custom commands and settings without creating a new fork

If ~/.extra exists, it will be sourced along with the other files. You can use this to add a few custom commands without the need to fork this entire repository, or to add commands you don’t want to commit to a public repository.

My ~/.extra looks something like this:

# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
GIT_AUTHOR_NAME="Juraj Bednar"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="jooray@mailinator.com"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

You could also use ~/.extra to override settings, functions and aliases from my dotfiles repository. It’s probably better to fork this repository instead, though.

You can also use ~/.gitconfig.local and ~/.vimrc.local

Another file that allows you to configure some aspects is ~/.dotconf. You can see ~/.dotconf.example for an example configuration. It is sourced before the main files, so if you need to set some environment variable before other settings, you can do so. The main setting you could need to change is the name of the interface that connects you to the internet:

export LOCAL_NET_IFACE="en0"

Examples

If you would like to see some examples of .aliases or .functions usage, have a look at EXAMPLES.md.

Install Homebrew formulae

When setting up a new Mac, you may want to install some common Homebrew formulae (after installing Homebrew, of course) and Homebrew casks (binary packages installed through Homebrew interface):

./init/brew.sh
./init/brew-cask.sh

Some of the functionality of these dotfiles depends on formulae installed by brew.sh. If you don’t plan to run brew.sh, you should look carefully through the script and manually install any particularly important ones. A good example is Bash/Git completion: the dotfiles use a special version from Homebrew.

Feedback

Suggestions/improvements welcome!

Improvements and changes from Matthias's dotfiles

  • Customization for my needs (e.g. not using Sublime Text, going easy on some macOS defaults)
  • Should work on Linux as well
  • Vagrant commands
  • Bash prompt - change the color of '$' in the prompt to red if last process exited with error
  • Customization of screen and tmux
  • Don't force en_US locale, this is per user (I set mine in ~/.extra)
  • cp_p command to copy with progress (uses rsync)
  • macOS hot corners adjusted my needs
  • Don't install JavaScript based stuff, install gpg and apg
  • Sane defaults on Linux, don't alias functions that don't work.
  • Change ip alias to myip (ip is a system command on Linux). Alias ip to myip on macOS. Support colorification for ip
  • Add support for directory jumper (z). Install it either using brew (.brew.sh) or to ~/.z.sh
  • Better support for grc - on macOS. This adds colour to your boring unix commands :). Just install it with brew (included in .brew.sh)
  • Make "update" work on macOS, Linux (yum-based and apt-get-based distributions)
  • Support for transfer.sh

Authors

twitter/jurbed
Juraj Bednar

Thanks to…