diff --git a/apps/shell/tmux/conf b/apps/shell/tmux/conf index 1569587..0bd6780 100644 --- a/apps/shell/tmux/conf +++ b/apps/shell/tmux/conf @@ -136,7 +136,7 @@ set -g @resurrect-save 'C-v' set -g @resurrect-restore 'R' # initialize tmux plugin manager -run '$HOME/.tmux/plugins/tpm/tpm' +run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm' # attempt at integrating nested tmux sessions nicely # bind -T root F12 \ diff --git a/bin/lib/debian/provisioning/create-my-user.bash b/bin/lib/debian/provisioning/create-my-user.bash new file mode 100755 index 0000000..42d5a11 --- /dev/null +++ b/bin/lib/debian/provisioning/create-my-user.bash @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# user's username +USERNAME=daniel +USER_GROUPS="users,docker,sudo" + +# add user with groups +useradd -m -d "/home/$USERNAME/.home" -G "${USER_GROUPS}" -s "/bin/bash" "$USERNAME" + +# give "nice home" directory ownership +chown -R "$USERNAME:$USERNAME" "/home/$USERNAME" + +# have user set new user's password +echo "Setting password for user '$USERNAME'" +passwd "$USERNAME" diff --git a/bin/lib/debian/provisioning/install-packages.bash b/bin/lib/debian/provisioning/install-packages.bash new file mode 100755 index 0000000..a6ce702 --- /dev/null +++ b/bin/lib/debian/provisioning/install-packages.bash @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +apt install \ + tmux \ + fish \ + fd-find \ + ripgrep \ + tree \ + fzf \ + htop \ + ssh mosh \ + openssl \ + python3 python3-pip \ + rsync \ + neovim vim \ + unzip \ + lua5.3 luajit \ + curl \ + jq \ + w3m \ + ranger \ + inotify-tools \ + time \ + fortune diff --git a/bin/lib/debian/provisioning/install-tmux-plugins.bash b/bin/lib/debian/provisioning/install-tmux-plugins.bash new file mode 100755 index 0000000..5db417f --- /dev/null +++ b/bin/lib/debian/provisioning/install-tmux-plugins.bash @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +mkdir -p "$HOME/.config/systemd/user" + +# tmux plugin manager +git clone https://github.com/tmux-plugins/tpm "$XDG_CONFIG_HOME/.tmux/plugins/tpm" + +# load tmux config +tmux source-file "$HOME/.tmux.conf" + +# clean, install, and update plugins +bash "$XDG_CONFIG_HOME/.tmux/plugins/tpm/bindings/clean_plugins" +bash "$XDG_CONFIG_HOME/.tmux/plugins/tpm/bindings/install_plugins" +bash "$XDG_CONFIG_HOME/.tmux/plugins/tpm/bindings/update_plugins" + +# load tmux config +tmux source-file "$HOME/.tmux.conf" + +systemctl --user enable tmux.service +systemctl --user restart tmux.service