Skip to content

Commit

Permalink
Some distrobox changes
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ngr31 committed Feb 1, 2024
1 parent 8852a7a commit 5041d8d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/common_modules/rpm-ostree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ install:
- system76-power
- android-tools
- zsh
- mosh
- micro
- gnome-boxes
- code
- p7zip
Expand Down
2 changes: 2 additions & 0 deletions config/files/usr/bin/distrobox-user
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -oue pipefail
# Run setup
echo 'Running initial setup...'

mkdir -p "$XDG_CONFIG_HOME/config.d"

# Install oh-my-zsh
ZSH="$XDG_CONFIG_HOME/oh-my-zsh" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended

Expand Down
9 changes: 9 additions & 0 deletions config/files/usr/etc/skel/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,18 @@ if [ -n "$CONTAINER_ID" ]; then

source "$XDG_CONFIG_HOME/.zshrc"
unset SETUP_DONE

for conf in "$XDG_CONFIG_HOME/config.d/"*.zsh; do
source "${conf}"
done
else
# localhost
source "$HOME/.config/contexts/localhost/.zshrc"

for conf in "$HOME/.config/contexts/localhost/config.d/"*.zsh; do
source "${conf}"
done
unset conf
fi

# Load seperated config files
Expand Down

0 comments on commit 5041d8d

Please sign in to comment.