Skip to content

Instantly share code, notes, and snippets.

@sohooo
Created March 4, 2021 09:38
Show Gist options
  • Save sohooo/f0eb264c8a4505fd8c79531ac56880b0 to your computer and use it in GitHub Desktop.
Save sohooo/f0eb264c8a4505fd8c79531ac56880b0 to your computer and use it in GitHub Desktop.
Lab Setup
# .dotvim files
git clone http://github.com/sohooo/dotvim2.git ~/.dotvim
vim -u ~/.dotvim/vimrc -c PlugInstall
# colorized cat
wget -c https://github.com/owenthereal/ccat/releases/download/v1.1.0/linux-amd64-1.1.0.tar.gz -O - | tar -xz
mkdir -p ~/.local/bin
cp -v ~/linux-amd64-1.1.0/ccat ~/.local/bin
# install lens
wget https://github.com/lensapp/lens/releases/download/v4.1.3/Lens-4.1.3.x86_64.rpm
sudo yum localinstall -y Lens*
# custom env
echo '
set -o vi
alias c="ccat --bg=dark"
alias v="vim -u ~/.dotvim/vimrc"
export EDITOR=vim
' >> ~/.bashrc
source ~/.bashrc
# download labs
mkdir ~/materials && cd $_
wget --recursive --no-parent http://content.example.com/courses/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment