/arshans_system_setup

This repo contains the rc files that I use with my machines. Contains Vim shortcuts, tmux shortcuts, etc.

Primary LanguageShell

Arshan's System Setup

This repo contains the rc files that I use with my machines. Contains Vim shortcuts, tmux shortcuts, etc.

One-liners

Docker:

url="https://raw.githubusercontent.com/ArshanKhanifar/arshans_system_setup/master/dist/docker_setup.sh"
curl -fsSL $url | bash

Nvidia:

url="https://raw.githubusercontent.com/ArshanKhanifar/arshans_system_setup/master/dist/nvidia_setup.sh"
curl -fsSL $url | bash

Python:

url="https://raw.githubusercontent.com/ArshanKhanifar/arshans_system_setup/master/dist/python_setup.sh"
curl -fsSL $url | bash

Profile Setup:

url="https://raw.githubusercontent.com/ArshanKhanifar/arshans_system_setup/master/dist/profile_setup.sh"
curl -fsSL $url | bash -s -- hello

Note: system script isn't really idempotent, if u wanna re-run it:

rm -rf .vim .vimrc .oh-my-zsh .fzf arshans_system_setup

Full Setup:

url="https://raw.githubusercontent.com/ArshanKhanifar/arshans_system_setup/master/dist/full_setup.sh"
curl -fsSL $url | bash -s -- hello

Ubuntu Pre-requisites

I forgot vanilla Ubuntu misses git and curl!

sudo apt install git curl

Automated Setup Script:

Installs

  • oh_my_zsh
  • fzf
  • fzf.vim
  • my vimrc files
  • my vundle plugins
  • my vim.plug plugins
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ArshanKhanifar/arshans_system_setup/master/system_setup.sh)" 

If you want interactive mode (asks for passwords), set the INTERACTIVE variable to true:

INTERACTIVE=true bash -c "$(curl -fsSL https://raw.githubusercontent.com/ArshanKhanifar/arshans_system_setup/master/system_setup.sh)" 

Macbooks with Apple CPU's

Update (2024-04-02): Homebrew is now supported on Macs so the automated script above should work just fine. Homebrew is not yet supported on ARM macs, so you'd have to install it using Rosetta:

arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

And to install packages:

arch -x86_64 brew install <package>

Byobu Config

The configuration currently has the following stuff:

  • prefix + v vertical split
  • prefix + s horizontal split
  • ctrl + hjkl selects panes while respecting vim's panes.

Byobu Cheatsheet

  • prefix is ctrl a
  • new tab: prefix + c
  • next tab: prefix + n
  • previous tab: prefix + p
  • select between panes: ctrl + hkjl