Some debian scripts

This commit is contained in:
Daniel Flanagan 2020-02-14 12:16:56 -06:00
parent 263137e555
commit 4a0a6ac071
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
4 changed files with 60 additions and 1 deletions

View File

@ -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 \

View 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"

View 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

View 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