Skip to content

Commit

Permalink
Tmux configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwaz committed Oct 13, 2020
1 parent 05148c8 commit 69093bc
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'

# Other examples:
set -g @plugin 'dracula/tmux'
set -g @dracula-show-battery false
set -g @dracula-show-network false
set -g @dracula-show-weather false
set -g @dracula-show-powerline true
set -g @dracula-show-left-icon session

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
5 changes: 5 additions & 0 deletions optional/tmux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$INSTALL tmux

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

cp .tmux.conf $HOME
3 changes: 3 additions & 0 deletions options.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
UPDATE_RC=1

KERNEL_OPT=0
PWNDBG=1

ZSH=1
RUST=1
QEMU=0
TMUX=1
25 changes: 21 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ fi


# optional feature installation
test "$QEMU" -eq 1 && source optional/qemu.sh

test "$ZSH" -eq 1 && source optional/zsh.sh
test "$RUST" -eq 1 && source optional/rust.sh
test "$QEMU" -eq 1 && source optional/qemu.sh
test "$TMUX" -eq 1 && source optional/tmux.sh


# Python environment setup
Expand All @@ -86,8 +88,23 @@ RC="PATH=$RC_PATH:\$PATH
$RC"

# Updating RC
if [[ "$ZSH" -eq 1 ]]; then
echo "$RC" >> $HOME/.zshrc
if [[ "$UPDATE_RC" -eq 1 ]]; then
if [[ "$ZSH" -eq 1 ]]; then
echo "$RC" >> $HOME/.zshrc
else
echo "$RC" >> $HOME/.bashrc
fi
else
echo "$RC" >> $HOME/.bashrc
echo "RC was not added"
echo "$RC"
fi

# P.S.

# Install fzf manually if you want
# fzf: https://github.com/junegunn/fzf

# type this in terminal if tmux is already running
# tmux source ~/.tmux.conf

# Use the tpm install command: prefix + I (default prefix is ctrl+b)

0 comments on commit 69093bc

Please sign in to comment.