master
Dominik Madarász 2024-05-21 21:27:06 +00:00
parent d7f19f4c0c
commit cfbdc6db69
4 changed files with 29 additions and 2 deletions

View File

@ -123,3 +123,4 @@ fi
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
. "$HOME/.cargo/env"

5
prep
View File

@ -2,7 +2,7 @@
sudo apt update && sudo apt upgrade -y sudo apt update && sudo apt upgrade -y
sudo apt install -y ripgrep build-essential git cmake fzf stow zsh sudo apt install -y ripgrep build-essential git cmake fzf stow zsh
sudo apt install -y ninja-build gettext unzip curl sudo apt install -y ninja-build gettext unzip curl tmux
sudo update-alternatives --install /usr/bin/editor editor /usr/local/bin/nvim 1000 sudo update-alternatives --install /usr/bin/editor editor /usr/local/bin/nvim 1000
sudo update-alternatives --install /usr/bin/vim vim /usr/local/bin/nvim 1000 sudo update-alternatives --install /usr/bin/vim vim /usr/local/bin/nvim 1000
@ -17,5 +17,8 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install --lts nvm install --lts
curl https://sh.rustup.rs -sSf | sh -s -- -y
cargo install tmux-sessionizer
./ubuntu ./ubuntu
source $HOME/.bashrc source $HOME/.bashrc

23
tmux/.tmux.conf 100644
View File

@ -0,0 +1,23 @@
set -ga terminal-overrides ",screen-256color*:Tc"
set-option -g default-terminal "screen-256color"
set -s escape-time 0
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g status-style 'bg=#333333 fg=#5eacd3'
bind r source-file ~/.tmux.conf
set -g base-index 1
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# vim-like pane switching
bind -r ^ last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R

2
ubuntu
View File

@ -1,6 +1,6 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
if [[ -z $STOW_FOLDERS ]]; then if [[ -z $STOW_FOLDERS ]]; then
STOW_FOLDERS="nvim,bash" STOW_FOLDERS="nvim,bash,tmux"
fi fi
if [[ -z $DOTFILES ]]; then if [[ -z $DOTFILES ]]; then