Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Update .bin/backup
Update .bin/sway-config
Update .gitignore
Update .zprofile
Update .zshenv
Add .config/.variables copy
Update .config/git/config
  • Loading branch information
AndreasBackx committed Apr 25, 2024
1 parent 35446e1 commit e46913c
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 21 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,6 @@ selected = "home"

## Unstaged File Templates

`.config/.local-variables`
```zsh
#!/usr/bin/env zsh

# Optionally name the location of your shell environment.
export ENV_LOCATION=""

# If you want to disable the monitors cli.
# export DISABLE_MONITORS="yes"

# Borg backup settings.
export BORG_REPO=""
export BORG_BASE_DIR=""
```

`.config/.secrets`
```zsh
Expand All @@ -60,7 +46,6 @@ export GITHUB_TOKEN=""

```zsh
touch ~/.config/.secrets
touch ~/.config/.local-variables

# Homebrew
git clone https://github.com/Homebrew/brew ~/.homebrew
Expand Down
1 change: 0 additions & 1 deletion dot_bin/executable_backup
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ SCRIPT_DIR=$(dirname "$0")
source "$SCRIPT_DIR/utils.zsh"

source "$SCRIPT_DIR/../.config/.variables"
source "$SCRIPT_DIR/../.config/.local-variables"
source "$SCRIPT_DIR/../.config/.secrets"

function is_environment_setup() {
Expand Down
1 change: 0 additions & 1 deletion dot_bin/executable_sway-config
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env zsh

source ~/.config/.variables
source ~/.config/.local-variables

function replace_monitors() {
sed "s/@MONITOR_LEFT/$MONITOR_LEFT/" $1 |
Expand Down
1 change: 0 additions & 1 deletion dot_gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ dmypy.json

.cfg
.config/.secrets
.config/.local-variables

# These are generated
.config/i3/config
Expand Down
4 changes: 2 additions & 2 deletions dot_zprofile
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
export PYENV_ROOT="$XDG_DATA_HOME/pyenv"
PATH="$PYENV_ROOT/shims:$PATH"
PATH="$PYENV_ROOT/bin:$PATH"
# $ENV_LOCATION should be set in .local-variables.
if [[ "$ENV_LOCATION" != "devserver" ]] && type "pyenv" >/dev/null; then

if [[ "$CHEZMOI_DATA_ENVIRONMENT" != "devserver" ]] && type "pyenv" >/dev/null; then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
Expand Down
1 change: 0 additions & 1 deletion dot_zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Sourcing again so they can be dynamically changed without logging out/in again.

source ~/.config/.variables
source ~/.config/.local-variables
source ~/.config/.secrets

## ALIASES ##
Expand Down
3 changes: 3 additions & 0 deletions private_dot_config/dot_variables copy.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

export CHEZMOI_DATA_ENVIRONMENT="{{ .environment }}"
export CHEZMOI_DATA_MONITORS_SELECTED="{{ .monitors.selected }}"
1 change: 1 addition & 0 deletions private_dot_config/git/config
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ defaultBranch = main

[user]
name = "Andreas Backx"
email = "[email protected]"
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIxRpuUyWKbNo4dopWoovkq5i9mqM9zSrbIMx+n/zuBz

0 comments on commit e46913c

Please sign in to comment.