From 79a9cffce1442f5fd8d062aabd6de91ffa4e9aab Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 26 May 2021 22:28:21 +0200 Subject: Update tmux setup and install plugins --- .tmux.conf | 14 +++++++++++--- README.md | 36 +++++++++++++++++++++++++----------- 2 files changed, 36 insertions(+), 14 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 46a744e..bb0ca49 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -11,7 +11,10 @@ set -g base-index 1 set -g pane-base-index 1 # Scroll History -set -g history-limit 30000 +set -g history-limit 10000 + +# Don't allow pane automatic renaming +set-option -g allow-rename off # Set ability to capture on start and restore on exit window data when running an application setw -g alternate-screen on @@ -22,5 +25,10 @@ set -s escape-time 50 # Allow the arrow key to be used immediately after changing windows set-option -g repeat-time 0 -# Allow copy like vim -bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard' + +# Tmux plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-logging' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' diff --git a/README.md b/README.md index 6063763..217b350 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ brew bundle # Installation : -- Essentials +## Essentials ```bash ln -sf ~/.rc/.bash_profile ~/.bash_profile ln -sf ~/.rc/.editorconfig ~/.editorconfig @@ -35,7 +35,7 @@ mkdir -p ~/.aws ln -sf ~/.rc/.aws/config ~/.aws/config ln -sf ~/.rc/.aws/credentials ~/.aws/credentials -mkdir -p ~/.config/htop ~/.config/tmuxinator ~/.config/wtf +mkdir -p ~/.config/htop ~/.config/wtf ln -sf ~/.rc/.config/htop/htoprc ~/.config/htop/htoprc ln -sf ~/.rc/.config/wtf/config.yml ~/.config/wtf/config.yml @@ -53,6 +53,7 @@ chsh -s /usr/local/bin/bash git remote remove origin git remote add origin git@github.com:a14m/.rc.git ``` + - Load pgp key from card and trust it ```bash gpg --edit-card @@ -62,6 +63,8 @@ gpg --edit-key a14m@pm.me > trust ``` +## Languages + - Setup ruby/rbenv ```bash mkdir -p ~/.bundle @@ -94,12 +97,26 @@ nvm install nvm alias default ``` -- Decrypt secrets +## Tools + +- Git Crypt ```bash +brew install git-crypt source ~/.bash_profile git-crypt unlock ``` +- Setup tmux plugins +```bash +git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm + +``` + +- Setup password store +```bash +git clone git@github.com:a14m/.pass ~/.password-store +``` + - Other Useful tools setup ```bash # Install pow @@ -110,14 +127,11 @@ ln -sf ~/.rc/.powconfig ~/.powconfig curl get.pow.cx/uninstall.sh | sh ``` -- Setup password store -```bash -git clone git@github.com:a14m/.pass ~/.password-store -``` +## Debian Linux -- Add Debian Linux missing dependencies +- Add missing dependencies ```bash -sudo apt update -sudo apt upgrade -sudo apt install scdaemon vim htop tmux pass pass-extension-otp git-crypt +sudo apt update -y +sudo apt upgrade -y +sudo apt install scdaemon vim htop tmux pass pass-extension-otp git-crypt -y ``` -- cgit v1.2.3