From e01352a08d6457b5d2e95b951417bbe229a90b7f Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Wed, 15 Mar 2023 11:37:52 -0600 Subject: [PATCH] Add machine specific config --- .gitignore | 2 +- .zshrc | 24 ++++--------------- .../machine-specific-zsh/Lizzys-BasedBook.zsh | 2 ++ scripts/machine-specific-zsh/rainsllamas.zsh | 13 ++++++++++ scripts/machine-specific-zsh/yagami.zsh | 8 +++++++ 5 files changed, 28 insertions(+), 21 deletions(-) create mode 100644 scripts/machine-specific-zsh/Lizzys-BasedBook.zsh create mode 100644 scripts/machine-specific-zsh/rainsllamas.zsh create mode 100644 scripts/machine-specific-zsh/yagami.zsh diff --git a/.gitignore b/.gitignore index 0f2b0dd..ef28a66 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ !.xmodmap !scripts -!scripts/* +!scripts/** !quicklisp.lisp diff --git a/.zshrc b/.zshrc index 93aee5a..5cc828f 100644 --- a/.zshrc +++ b/.zshrc @@ -1,6 +1,6 @@ -export PATH=$PATH:$HOME/scripts:/usr/local/i386elfgcc/bin/:$HOME/.local/bin:/usr/local/opt/binutils/bin:/usr/local/opt/gnu-tar/libexec/gnubin:/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:$HOME/.elixir-ls/release:$HOME/.rowswell/bin export TERM=xterm-256color export GPG_TTY=$(tty) +export PATH=$PATH:$HOME/scripts:$HOME/.local/bin:$HOME/.rowswell/bin # Print a random ascii arts from ~/ascii-arts if [ -d "$HOME/ascii-arts" ] @@ -32,25 +32,6 @@ HISTSIZE=10000 SAVEHIST=10000 setopt appendhistory -# asdf -[ -f /opt/asdf-vm/asdf.sh ] && . /opt/asdf-vm/asdf.sh - - -# thefuck -eval $(thefuck --alias) - -# Pyenv -if [ -d "$HOME/.pyenv" ] -then - export PYENV_ROOT="$HOME/.pyenv" - command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" - eval "$(pyenv init -)" -fi - - - # ghcup-env -[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" - # Aliases alias ..="cd .." alias gc="git checkout" @@ -67,3 +48,6 @@ alias gsh="git stash" alias gl="git log" alias sbcl="rlwrap sbcl" + +# Machine specific config +source ~/scripts/machine-specific-zsh/$(hostname).zsh diff --git a/scripts/machine-specific-zsh/Lizzys-BasedBook.zsh b/scripts/machine-specific-zsh/Lizzys-BasedBook.zsh new file mode 100644 index 0000000..d064cb6 --- /dev/null +++ b/scripts/machine-specific-zsh/Lizzys-BasedBook.zsh @@ -0,0 +1,2 @@ +# Ah, mac utils +export PATH=$PATH:/usr/local/opt/binutils/bin:/usr/local/opt/gnu-tar/libexec/gnubin:/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/i386elfgcc/bin/ diff --git a/scripts/machine-specific-zsh/rainsllamas.zsh b/scripts/machine-specific-zsh/rainsllamas.zsh new file mode 100644 index 0000000..e5a7389 --- /dev/null +++ b/scripts/machine-specific-zsh/rainsllamas.zsh @@ -0,0 +1,13 @@ +# asdf +[ -f /opt/asdf-vm/asdf.sh ] && . /opt/asdf-vm/asdf.sh + +# thefuck +eval $(thefuck --alias) + +# Pyenv +if [ -d "$HOME/.pyenv" ] +then + export PYENV_ROOT="$HOME/.pyenv" + command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" +fi diff --git a/scripts/machine-specific-zsh/yagami.zsh b/scripts/machine-specific-zsh/yagami.zsh new file mode 100644 index 0000000..1a09ca8 --- /dev/null +++ b/scripts/machine-specific-zsh/yagami.zsh @@ -0,0 +1,8 @@ +# asdf +[ -f /opt/asdf-vm/asdf.sh ] && . /opt/asdf-vm/asdf.sh + +# thefuck +eval $(thefuck --alias) + + # ghcup-env +[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env"