diff --git a/.gitignore b/.gitignore index d54fa14..27522b8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .python-version lazy-lock.json lazyvim.json +*ansys* #nvim ## Swap diff --git a/Dockerfile b/Dockerfile index c148c43..ddba090 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,8 @@ RUN apk add --no-cache \ sshpass \ openssh-client \ openssh-server \ + gnupg \ + pass \ # Archive tools \ unzip \ tar \ diff --git a/home/.alacritty/includes/shared.toml b/home/.alacritty/includes/shared.toml index 40ce2ce..b464f66 100644 --- a/home/.alacritty/includes/shared.toml +++ b/home/.alacritty/includes/shared.toml @@ -1,6 +1,6 @@ [font] size = 12 -normal = { family = "JetBrainsMono Nerd Font", style = "Regular" } +normal = { family = "JetBrainsMono NF", style = "Regular" } [scrolling] history = 100000 diff --git a/home/.gitignore_global b/home/.gitignore_global index 5732ec8..01a75eb 100644 --- a/home/.gitignore_global +++ b/home/.gitignore_global @@ -71,7 +71,6 @@ tramp # cask packages .cask/ -dist/ # Flycheck flycheck_*.el @@ -141,7 +140,6 @@ __pycache__/ .Python build/ develop-eggs/ -dist/ downloads/ eggs/ .eggs/ diff --git a/home/.password-store/.gpg-id b/home/.password-store/.gpg-id new file mode 100644 index 0000000..5b7248a --- /dev/null +++ b/home/.password-store/.gpg-id @@ -0,0 +1 @@ +C3238691F8B983AB1ED09984F394946CED79E325 diff --git a/home/.password-store/OPENAI_API_KEY.gpg b/home/.password-store/OPENAI_API_KEY.gpg new file mode 100644 index 0000000..41e4f7d Binary files /dev/null and b/home/.password-store/OPENAI_API_KEY.gpg differ diff --git a/home/.zshrc b/home/.zshrc index 99a97d3..23ec0bb 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -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 @@ -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 diff --git a/home/bin/cloneorg b/home/bin/cloneorg index 18f7555..dcd6b99 100755 --- a/home/bin/cloneorg +++ b/home/bin/cloneorg @@ -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 }