Add machine specific config

This commit is contained in:
Lizzy Hunt 2023-03-15 11:37:52 -06:00
parent b17b15d64d
commit e01352a08d
No known key found for this signature in database
GPG Key ID: 8AC6A4B840C0EC49
5 changed files with 28 additions and 21 deletions

2
.gitignore vendored
View File

@ -6,7 +6,7 @@
!.xmodmap !.xmodmap
!scripts !scripts
!scripts/* !scripts/**
!quicklisp.lisp !quicklisp.lisp

24
.zshrc
View File

@ -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 TERM=xterm-256color
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
export PATH=$PATH:$HOME/scripts:$HOME/.local/bin:$HOME/.rowswell/bin
# Print a random ascii arts from ~/ascii-arts # Print a random ascii arts from ~/ascii-arts
if [ -d "$HOME/ascii-arts" ] if [ -d "$HOME/ascii-arts" ]
@ -32,25 +32,6 @@ HISTSIZE=10000
SAVEHIST=10000 SAVEHIST=10000
setopt appendhistory 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 # Aliases
alias ..="cd .." alias ..="cd .."
alias gc="git checkout" alias gc="git checkout"
@ -67,3 +48,6 @@ alias gsh="git stash"
alias gl="git log" alias gl="git log"
alias sbcl="rlwrap sbcl" alias sbcl="rlwrap sbcl"
# Machine specific config
source ~/scripts/machine-specific-zsh/$(hostname).zsh

View File

@ -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/

View File

@ -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

View File

@ -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"