Skip to content

Instantly share code, notes, and snippets.

@pascalwhoop
Last active January 16, 2023 13:00
Show Gist options
  • Save pascalwhoop/4d01bb179132118c565b3db56c4ce68e to your computer and use it in GitHub Desktop.
Save pascalwhoop/4d01bb179132118c565b3db56c4ce68e to your computer and use it in GitHub Desktop.
bootstrap script for machine learning env
#!/bin/bash
# install core requirements
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sudo apt install -y tmux htop bmon fzf wget curl
# get brew working
curl https://gist.githubusercontent.com/pascalwhoop/4d01bb179132118c565b3db56c4ce68e/raw/fa0ab508cac760efaa399442047256a36578c62e/tmux.conf > ~/.tmux.conf
# fish shell
brew install fish fzf bottom tldr exa dust duf fd jq dog
# oh my fish
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
#python dependencies
pip install transformers accelerate tensorboard bitsandbytes
set -g default-terminal "xterm"
# set navigation to quicker finger combos
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
#bind-key -r C-h resizep -L
#bind-key -r C-j resizep -R
#bind-key -r C-k resizep -U
#bind-key -r C-l resizep -D
#bind -n M-Left select-pane -L
#bind -n M-Down select-pane -D
#bind -n M-Up select-pane -U
#bind -n M-Right select-pane -R
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# copy mode using vi
set-window-option mode-keys vi
#set-window-option -g mode-keys vi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment