Merge branch 'dev' of ssh://git.lyte.dev:2222/lytedev/dotfiles into dev
This commit is contained in:
commit
369984b0d5
4 changed files with 60 additions and 1 deletions
|
@ -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 \
|
||||
|
|
15
bin/lib/debian/provisioning/create-my-user.bash
Executable file
15
bin/lib/debian/provisioning/create-my-user.bash
Executable file
|
@ -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"
|
24
bin/lib/debian/provisioning/install-packages.bash
Executable file
24
bin/lib/debian/provisioning/install-packages.bash
Executable file
|
@ -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
|
20
bin/lib/debian/provisioning/install-tmux-plugins.bash
Executable file
20
bin/lib/debian/provisioning/install-tmux-plugins.bash
Executable file
|
@ -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
|
Reference in a new issue