Skip to content

Commit 10e023c

Browse files
author
Joshua Murphy
committed
Scripts no longer a submodule, it was overkill
1 parent 966b248 commit 10e023c

File tree

6 files changed

+127
-0
lines changed

6 files changed

+127
-0
lines changed

scripts/screen_layout_office.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
xrandr --output VGA-1 --primary --mode 1680x1050 --pos 0x0 --rotate normal --output DVI-D-1 --mode 1280x1024 --pos 1680x26 --rotate normal --output HDMI-1 --off

scripts/stuckonamac.sh

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#!/bin/bash
2+
3+
# ███████╗████████╗██╗ ██╗ ██████╗██╗ ██╗ ██████╗ ███╗ ██╗ █████╗ ███╗ ███╗ █████╗ ██████╗
4+
# ██╔════╝╚══██╔══╝██║ ██║██╔════╝██║ ██╔╝ ██╔═══██╗████╗ ██║ ██╔══██╗ ████╗ ████║██╔══██╗██╔════╝
5+
# ███████╗ ██║ ██║ ██║██║ █████╔╝ ██║ ██║██╔██╗ ██║ ███████║ ██╔████╔██║███████║██║
6+
# ╚════██║ ██║ ██║ ██║██║ ██╔═██╗ ██║ ██║██║╚██╗██║ ██╔══██║ ██║╚██╔╝██║██╔══██║██║
7+
# ███████║ ██║ ╚██████╔╝╚██████╗██║ ██╗ ╚██████╔╝██║ ╚████║ ██║ ██║ ██║ ╚═╝ ██║██║ ██║╚██████╗▄█╗
8+
# ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝
9+
#
10+
# ██████╗ ██╗ ███████╗ █████╗ ███████╗███████╗ ███████╗███████╗███╗ ██╗██████╗ ██╗ ██╗███████╗██╗ ██████╗
11+
# ██╔══██╗██║ ██╔════╝██╔══██╗██╔════╝██╔════╝ ██╔════╝██╔════╝████╗ ██║██╔══██╗ ██║ ██║██╔════╝██║ ██╔══██╗
12+
# ██████╔╝██║ █████╗ ███████║███████╗█████╗ ███████╗█████╗ ██╔██╗ ██║██║ ██║ ███████║█████╗ ██║ ██████╔╝
13+
# ██╔═══╝ ██║ ██╔══╝ ██╔══██║╚════██║██╔══╝ ╚════██║██╔══╝ ██║╚██╗██║██║ ██║ ██╔══██║██╔══╝ ██║ ██╔═══╝
14+
# ██║ ███████╗███████╗██║ ██║███████║███████╗ ███████║███████╗██║ ╚████║██████╔╝ ██║ ██║███████╗███████╗██║
15+
# ╚═╝ ╚══════╝╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚══════╝╚══════╝╚═╝ ╚═══╝╚═════╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
16+
#
17+
# Author: ranguli
18+
# GitHub: https://www.github.com/ranguli/scripts
19+
# 2017
20+
21+
# If you're like me and run Linux on a MacBook, on the odd occasion you'll find yourself back in OS X trying
22+
# to do something just wishing you were back on the dark side. This script is designed to make your time on
23+
# a different OS as easy as possible
24+
25+
# Install Homebrew, the missing package manager for OS X
26+
27+
vundle="~/.vim/bundle/Vundle.vim"
28+
29+
declare -a pkg=(
30+
"stow"
31+
"git"
32+
"wget"
33+
"zsh"
34+
"zsh-completions"
35+
"vim"
36+
)
37+
38+
for i in "${arr[@]}"
39+
do
40+
echo "$i"
41+
done
42+
43+
44+
45+
if ! type "brew" > /dev/null; then
46+
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
47+
else
48+
brew update && brew upgrade
49+
fi
50+
51+
# Install some basics through brew (most of which are newer versions of their natively packaged macOS counterparts.
52+
if ! brew ls --versions "${arr[@]}" > /dev/null; then
53+
brew install "${arr[@]}"
54+
fi
55+
56+
57+
#Install Vundle
58+
if [ -e $vundle ]
59+
then
60+
echo "Vundle already installed."
61+
else
62+
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
63+
fi
64+
65+
# Install ohmyzsh, a community framework for managing zsh configurations
66+
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
67+
68+
# Clone the dotfiles repo, stow vim and zsh, then remove the repo.
69+
git clone https://github.com/ranguli/dotfiles/vim
70+
cd ./dotfiles && stow vim && stow zsh && rm -rf ../dotfiles/
71+
72+
# Housekeeping, such as updating python, etc.
73+
pip install --upgrade pip setuptools
74+

scripts/urxvt.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
git clone https://github.com/cpjreynolds/urxvt
2+
cd ./urxvt
3+
./configure --enable-everything
4+
make && sudo make install

scripts/vim.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
sudo apt-get remove vim vim-runtime vim-gtk vim-gtk3
2+
3+
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
4+
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
5+
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
6+
python3-dev ruby-dev lua5.1 lua5.1-dev libperl-dev git checkinstall
7+
8+
9+
10+
#Obtain the latest version of Vim's source and then compile it to our own specs
11+
cd ~
12+
git clone https://github.com/vim/vim.git
13+
cd vim
14+
./configure --with-features=huge \
15+
--enable-multibyte \
16+
--enable-rubyinterp=yes \
17+
--enable-pythoninterp=yes \
18+
--enable-python3interp=yes \
19+
--with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/ \
20+
--enable-perlinterp=yes \
21+
--enable-luainterp=yes \
22+
--enable-gui=gtk3\
23+
--enable-cscope \
24+
--prefix=/usr/local
25+
make -j4 VIMRUNTIMEDIR=/usr/local/share/vim/vim80
26+
sudo checkinstall
27+
sudo make install
28+
29+
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
30+
sudo update-alternatives --set editor /usr/bin/vim
31+
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
32+
sudo update-alternatives --set vi /usr/bin/vim
33+
34+
#Install Vundle before first run
35+
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
36+
37+
#Launch Vundle plugin install on first run
38+
vim +PluginInstall +qall

scripts/xcape.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Thanks to this brilliant article, we can map Caps Lock to generate Escape when pressed on it's own, but if it's held in a combination with another key, it's Control.
2+
3+
# http://tiborsimko.org/capslock-escape-control.html
4+
5+
setxkbmap -option ctrl:nocaps
6+
xcape -e 'Control_L=Escape'

setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ rm install-tl-unx.tar.gz
2323
sudo ./install-tl-20180224/install-tl
2424
rm -r ./install-tl-20180224/
2525

26+
# Install tmux plugin manager - not that we really use it anymore
27+
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
28+
2629
# Danger zone:
2730
sudo su root
2831
echo "blacklist pcspkr" > /etc/modeprobe.d/nobeep.conf # Disable PC speaker

0 commit comments

Comments
 (0)