Merge branch 'dev' of ssh://git.lyte.dev:2222/lytedev/dotfiles into dev

This commit is contained in:
Daniel Flanagan 2020-02-14 12:20:18 -06:00
commit 369984b0d5
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' set -g @resurrect-restore 'R'
# initialize tmux plugin manager # 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 # attempt at integrating nested tmux sessions nicely
# bind -T root F12 \ # 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