Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.python-version
lazy-lock.json
lazyvim.json
*ansys*

#nvim
## Swap
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ RUN apk add --no-cache \
sshpass \
openssh-client \
openssh-server \
gnupg \
pass \
# Archive tools \
unzip \
tar \
Expand Down
2 changes: 1 addition & 1 deletion home/.alacritty/includes/shared.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[font]
size = 12
normal = { family = "JetBrainsMono Nerd Font", style = "Regular" }
normal = { family = "JetBrainsMono NF", style = "Regular" }

[scrolling]
history = 100000
Expand Down
2 changes: 0 additions & 2 deletions home/.gitignore_global
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ tramp

# cask packages
.cask/
dist/

# Flycheck
flycheck_*.el
Expand Down Expand Up @@ -141,7 +140,6 @@ __pycache__/
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
Expand Down
1 change: 1 addition & 0 deletions home/.password-store/.gpg-id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C3238691F8B983AB1ED09984F394946CED79E325
Binary file added home/.password-store/OPENAI_API_KEY.gpg
Binary file not shown.
21 changes: 21 additions & 0 deletions home/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ fi
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/bin:$PATH:/opt/homebrew/bin:/home/linuxbrew/.linuxbrew/bin:$HOME/.cargo/bin

# Add docker to path
export PATH=$PATH:$HOME/.docker/bin

# Load private info location
if [ -z "$ZSHRC_PRIVATE_LOC" ]; then
ZSHRC_PRIVATE_LOC=$MNT
Expand Down Expand Up @@ -234,6 +237,24 @@ build-deps () {
alias trueclear="clear"
alias clear="trueclear && neofetch"

# Load environment variables from a file
function dotenv() {
if [[ -f "$1" ]]; then
export $(grep -v '^#' "$1" | xargs)
else
echo "dotenv: File '$1' not found."
fi
}

# Unset environment variables that were set from a file
function undotenv() {
if [[ -f "$1" ]]; then
unset $(grep -v '^#' "$1" | sed -E 's/(.*)=.*/\1/' | xargs)
else
echo "undotenv: File '$1' not found."
fi
}

## =============== Exit =========================
## Because the shell has ~/shell inside its own filesystem
## we want to protect any work we are doing in this filesystem
Expand Down
2 changes: 1 addition & 1 deletion home/bin/cloneorg
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ clone_or_update_repo() {
cd - || exit
else
echo "Cloning $repo_name into $target_dir"
git clone git@github.com:$ORGANIZATION/$repo_name.git "$target_dir/$repo_name" --mirror
git clone git@github.com:$ORGANIZATION/$repo_name.git "$target_dir/$repo_name"
fi
}

Expand Down
Loading