Skip to content
paul's shell, git, etc config files. also homebrew, migration setup. good stuff.
Vim script Shell Python Vim Snippet JavaScript
Branch: master
Clone or download
Latest commit f76a53e Jan 23, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vim minor vim config changes. Mar 17, 2016
bin untrack my cron files Jul 12, 2019
cron crontab stuff Jan 23, 2020
docs Update clearing-disk-space.sh (#104) Oct 4, 2019
fish chromium: renice the compiler process after it starts Jan 23, 2020
prefs random updates. mostly my shit Jul 12, 2019
.aliases gi is alias for git. cp is alias for cherrypick May 6, 2018
.bash_profile bash history: keep space-prefixed cmds Jan 23, 2020
.bash_prompt chromium hacking bits. prompt and fish functions Jul 12, 2019
.bashrc homebrew and disk management stuff. assorted. Mar 17, 2016
.dircolors update dircolors to latest. Feb 22, 2018
.eslintrc.js upgrade base eslint config. May 13, 2017
.exports hardening for ubuntu May 5, 2015
.functions use statikk for static file hosting. Jun 21, 2017
.gemrc gem installs shouldnt waste time on documentation. Dec 7, 2015
.gitattributes no more whitespace fixing automatically. Jan 26, 2013
.gitconfig git: add aliases for helpers diffcommitsfrommaster and difffrommaster Jan 23, 2020
.gitignore gitconfig: give up on the https -> ssh rewrites. they were nice but r… Jul 12, 2019
.gitmodules fish prompt: migrate to port of 'pure' prompt Dec 12, 2016
.hushlogin add .hushlogin file which avoids 'Last login: Mon Dec 12 10:40:21 on … Dec 12, 2016
.inputrc import * from bash-sensible. fixes #59 Jan 4, 2017
.osx random updates. mostly my shit Jul 12, 2019
.ssh.config.example rename ssh config. Dec 8, 2016
.vimrc Update .vimrc (#101) Jul 23, 2019
.zshrc Remove right arrow command Oct 27, 2016
README.md readme note about submodule Dec 12, 2016
brew-cask.sh tweaks to brew/cask installs. Mar 26, 2017
brew.sh tweaks to brew/cask installs. Mar 26, 2017
chromium.sh chromium hacking functions in bash rather than my fish ones. Jul 12, 2019
package.json node_module bump to latest Jul 12, 2019
setup-a-new-machine.sh nvm setup update, git branch auto complete, diff-so-fancy instal… (#102) Sep 16, 2019
symlink-setup.sh symlink-setup: fish Dec 7, 2015

README.md

Paul's dotfiles

  • I maintain this repo as my dotfiles, but I'm keenly aware people are using it for theirs.
  • You're quite welcome to make suggestions, however I may decline if it's not of personal value to me.
  • If you're starting off consider forking mathias or alrra. paulmillr and gf3 also have great setups

Setup

installing & using

  • fork this to your own acct
  • clone that repo
  • read and run parts of setup-a-new-machine.sh
  • read and run symlink-setup.sh
    • git config needs attention, read the notes.
  • use it. yay!

maintenance

  • commit/push changes you want.
  • you can also hypothetically cherry-pick commits from me and mathias and our fork ecosystem.

shell

This repo contains config for bash, zsh, and fish. As of March 2016, I'm using fish shell mostly, but fall back to bash once in a while. The bash and fish stuff are both well maintained; zsh, less so. If you're using fish you'll want to do a git submodule update --init.

my favorite parts.

.aliases and .functions

So many goodies.

The "readline config" (.inputrc)

Basically it makes typing into the prompt amazing.

  • tab like crazy for autocompletion that doesnt suck. tab all the things. srsly.
  • no more that says "Display all 1745 possibilities? (y or n)" YAY
  • type cat <uparrow> to see your previous cats and use them.
  • case insensitivity.
  • tab all the livelong day.

Moving around in folders (z, ..., cdf)

z helps you jump around to whatever folder. It uses actual real magic to determine where you should jump to. Seperately there's some ... aliases to shorten cd ../.. and .., .... etc. Then, if you have a folder open in Finder, cdf will bring you to it.

z dotfiles
z blog
....      # drop back equivalent to cd ../../..
z public
cdf       # cd to whatever's up in Finder

z learns only once its installed so you'll have to cd around for a bit to get it taught. Lastly, I use open . to open Finder from this path. (That's just available normally.)

overview of files

Automatic config

  • .vimrc, .vim - vim config, obv.
  • .inputrc - behavior of the actual prompt line

shell environment

  • .aliases
  • .bash_profile
  • .bash_prompt
  • .bashrc
  • .exports
  • .functions
  • .extra - not included, explained below

manual run

  • setup-a-new-machine.sh - random apps i need installed
  • symlink-setup.sh - sets up symlinks for all dotfiles and vim config.
  • .osx - run on a fresh osx setup
  • brew.sh & brew-cask.sh - homebrew initialization

git, brah

  • .git
  • .gitattributes
  • .gitconfig
  • .gitignore

.extra for your private configuration

There will be items that don't belong to be committed to a git repo, because either 1) it shoudn't be the same across your machines or 2) it shouldn't be in a git repo. Kick it off like this:

touch ~/.extra && $EDITOR $_

I have some EXPORTS, my PATH construction, and a few aliases for ssh'ing into my servers in there.

I don't know how other folks manage their $PATH, but this is how I do mine:

# The top-most paths override here.
      PATH=/opt/local/bin
PATH=$PATH:/opt/local/sbin
PATH=$PATH:/bin
PATH=$PATH:~/.rvm/bin
PATH=$PATH:~/code/git-friendly
# ...

export PATH

Sensible OS X defaults

Mathias's repo is the canonical for this, but you should probably run his or mine after reviewing it.

./.osx

~/bin

One-off binaries that aren't via an npm global or homebrew. git open, wifi-password, coloredlogcat, git-overwritten, and subl for Sublime Text.

Syntax highlighting for these files

If you edit this stuff, install Dotfiles Syntax Highlighting via Package Control

You can’t perform that action at this time.