Created
August 8, 2018 00:19
-
-
Save Khalian/2978b4f4ad6233ed734d8a367c508d1c to your computer and use it in GitHub Desktop.
Arunav's pimped up installation of rad stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is to be used in environments without proper yum usage. | |
# Mosh | |
sudo yum -y install autoconf automake gcc gcc-c++ make boost-devel | |
sudo yum -y install zlib-devel ncurses-devel protobuf-devel openssl-devel | |
wget https://mosh.org/mosh-1.3.0.tar.gz | |
tar xf mosh-1.3.0.tar.gz -C /tmp/ | |
cd /tmp/mosh-1.3.0 | |
./configure | |
make -j7 | |
sudo make install | |
# Oh my zsh | |
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
echo "SHELL=/bin/zsh exec /bin/zsh --login" >> ~/.bashrc | |
# Byobu | |
wget https://launchpad.net/byobu/trunk/5.125/+download/byobu_5.125.orig.tar.gz | |
tar xf byobu_5.125.orig.tar.gz -C /tmp/ | |
cd /tmp/byobu-5.125/ | |
./configure | |
make -j7 | |
sudo make install | |
sudo yum install -y tmux | |
# Silver searcher | |
sudo yum -y install pkgconfig automake gcc zlib-devel pcre-devel xz-devel | |
git clone https://github.com/ggreer/the_silver_searcher /tmp/the_silver_searcher | |
cd /tmp/the_silver_searcher | |
./build.sh | |
sudo make install | |
ln -sf $HOME/.local/python-3.6.3/bin/python3.6 ${HOME}/.local/bin/python | |
ln -sf $HOME/.local/python-3.6.3/bin/pip3 ${HOME}/.local/bin/pip | |
echo "export PATH=$HOME/.local/bin:$PATH:$HOME/.local/python-3.6.3/bin" >> ~/.zshrc && source ~/.zshrc | |
# Pip and better python | |
sudo yum install -y gcc zlib-devel openssl-devel ncurses-devel | |
cd /tmp | |
wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz | |
tar -xvf Python-3.6.3.tgz | |
cd Python-3.6.3 | |
mkdir -p $HOME/.local/bin | |
./configure --prefix $HOME/.local/python-3.6.3 | |
make -j7 | |
sudo make install | |
# AWS CLI | |
sudo pip install --upgrade pip | |
sudo pip install awscli | |
# Up to date vim | |
sudo yum install -y ruby ruby-devel lua lua-devel luajit \ | |
luajit-devel ctags git python python-devel \ | |
python3 python3-devel tcl-devel \ | |
perl perl-devel perl-ExtUtils-ParseXS \ | |
perl-ExtUtils-XSpp perl-ExtUtils-CBuilder \ | |
perl-ExtUtils-Embed | |
cd /tmp | |
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --with-features=huge --enable-multibyte --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-python3interp=yes --enable-perlinterp=yes --enable-gui=gtk2 --enable-cscope --prefix=/usr/local | |
make | |
sudo make install | |
# Opinionated Vim configs, update the wget to the latest : https://gist.github.com/Khalian/2572aa9138ef77385b9fc6689c7f9224 | |
rm ~/.vimrc | |
wget https://gist.githubusercontent.com/Khalian/2572aa9138ef77385b9fc6689c7f9224/raw/3056eb0de2deeb1fa439723a8f423a8a4fb3ad33/vimsetup.sh | |
chmod +x /tmp/vimsetup.sh | |
cd /tmp | |
./vimsetup.sh | |
# Neovim remote | |
sudo pip install neovim-remote | |
# Better ruby, the base cloud desktop one is shit, does not work with half the amazon tools | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
\curl -sSL https://get.rvm.io | bash | |
source /home/$USER/.rvm/scripts/rvm | |
rvm install ruby --latest | |
# Git configs | |
wget https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy -O $HOME/.customscripts/diff-so-fancy | |
chmod +x $HOME/.customscripts/diff-so-fancy | |
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" | |
git config --global color.ui true | |
git config --global color.diff-highlight.oldNormal "red bold" | |
git config --global color.diff-highlight.oldHighlight "red bold 52" | |
git config --global color.diff-highlight.newNormal "green bold" | |
git config --global color.diff-highlight.newHighlight "green bold 22" | |
git config --global color.diff.meta "yellow" | |
git config --global color.diff.frag "magenta bold" | |
git config --global color.diff.commit "yellow bold" | |
git config --global color.diff.old "red bold" | |
git config --global color.diff.new "green bold" | |
git config --global color.diff.whitespace "red reverse" | |
rm ~/.gitconfig | |
wget https://gist.githubusercontent.com/Khalian/d2852e9fee3de4cc32849d450afbf6bf/raw/082d7c2c6d9dd952aefd7df58b00b15d25682157/git%2520configs -O ~/.gitconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment