Skip to content

Instantly share code, notes, and snippets.

@goofrider
Last active December 19, 2015 21:58
Show Gist options
  • Save goofrider/6023745 to your computer and use it in GitHub Desktop.
Save goofrider/6023745 to your computer and use it in GitHub Desktop.
Fresh shell basics

Installation

Install fresh with the following:

bash -c "`curl -sL get.freshshell.com`"

Manual steps

Don't want to run our shell script? The installation is simple:

git clone https://github.com/freshshell/fresh ~/.fresh/source/freshshell/fresh
echo "fresh freshshell/fresh bin/fresh --bin" >> ~/.freshrc
~/.fresh/source/freshshell/fresh/bin/fresh # run fresh
# Add `source ~/.fresh/build/shell.sh` to your shell config.

Local files

If no repo is specified fresh will look for local files relative to ~/.dotfiles/.

For example the following fresh line will look for ~/.dotfiles/aliases/git.sh.

fresh aliases/git.sh

Shell files

With no options, fresh will join specified shell files together.

fresh twe4ked/dotfiles aliases/git.sh
fresh jasoncodes/dotfiles 'aliases/*'

Joins the aliases/git file from [twe4ked/dotfiles] with the aliases/* files from [jasoncodes/dotfiles] into ~/.fresh/build/shell.sh.

Config files

fresh twe4ked/dotfiles config/ackrc --file
fresh example/dotfiles pry.rb --file=~/.pryrc

Links the config/ackrc file from [twe4ked/dotfiles] to ~/.ackrc and the pry.rb file from example/dotfiles to ~/.pryrc.

A single config file built from multiple sources

fresh jasoncodes/dotfiles tmux.conf --file
fresh twe4ked/dotfiles config/tmux.conf --file

Builds tmux configuration from both [jasoncodes/dotfiles] and [twe4ked/dotfiles] together into a single ~/.tmux.conf output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment