···11-set THEME_PATH $DOTFILES/fish/base16
22-33-function theme
44- if status --is-interactive
55- eval sh "$THEME_PATH"/"$argv[1]"."$argv[2]".sh
66- end
77-end
+1-1
fish/functions/work.fish
···22 set NAME $argv[1]
3344 tmux has-session -t "$NAME"
55- or tmux new-session -d -s "$NAME" -c "$WORKSPACE_SRC/$NAME"
55+ or tmux new-session -d -s "$NAME" -c "$WORKSPACE/$NAME"
66 if [ -z "$TMUX" ]
77 tmux attach-session -t "$NAME"
88 else
···11-#!/bin/sh
22-33-# This script installs the Nix package manager on your system by
44-# downloading a binary distribution and running its installer script
55-# (which in turn creates and populates /nix).
66-77-{ # Prevent execution if this script was only partially downloaded
88-99-unpack=nix-binary-tarball-unpack
1010-1111-require_util() {
1212- type "$1" > /dev/null 2>&1 || which "$1" > /dev/null 2>&1 ||
1313- oops "you do not have \`$1' installed, which i need to $2"
1414-}
1515-1616-oops() {
1717- echo "$0: $@" >&2
1818- rm -rf "$unpack"
1919- exit 1
2020-}
2121-2222-case "$(uname -s).$(uname -m)" in
2323- Linux.x86_64) system=x86_64-linux;;
2424- Linux.i?86) system=i686-linux;;
2525- Darwin.x86_64) system=x86_64-darwin;;
2626- *) oops "sorry, there is no binary distribution of Nix for your platform";;
2727-esac
2828-2929-url="https://nixos.org/releases/nix/nix-1.10/nix-1.10-$system.tar.bz2"
3030-3131-require_util curl "download the binary tarball"
3232-require_util bzcat "decompress the binary tarball"
3333-require_util tar "unpack the binary tarball"
3434-3535-echo "unpacking Nix binary tarball for $system from \`$url'..."
3636-mkdir "$unpack" || oops "failed to create \`$unpack' directory"
3737-curl -L "$url" | bzcat | tar x -C "$unpack" || oops "failed to unpack \`$url'"
3838-3939-[ -e "$unpack"/*/install ] ||
4040- oops "installation script is missing from the binary tarball!"
4141-4242-"$unpack"/*/install
4343-rm -rf "$unpack"
4444-4545-} # End of wrapping