Scripts and dotfiles for working on various Linux systems (based on
Note that this depends on
posix-dots for completeness.
Much TODO to be had around here.
Why "-dots"? See the system I start with:
curl sharpsaw.org/init | sh
,config-kernel-install⇒ make menuconfig then do a ,kernel-install. Backs up .config to ~/.backup-kernel-configs/
,grub⇒ Mount /boot, edit /boot/grub/grub.conf, install if you don't :cq vim
sudo /etc/init.d/$1 start
,kernel-install⇒ Perform some steps to install a kernel. Set DRIVE=… to override default of /dev/sda, SUDO='' to override sudo, and MAKEFLAGS=… to override -j5.
echo "Doesn't seem to be a console, so loadkeys probably won't work."
,wifi⇒ Wifi startup sequence (using dhcpcd and possibly using wpa_supplicant)
,xsession-errors⇒ A simple tail on ~/.xsession-errors. Will probably add grep -v's to filter.
apti⇒ Use aptitude or apt-get to install a package.
apts⇒ Use aptitude or apt-cache to search for a package.
aptitude show <args>
sudo aptitude update <args>
sudo aptitude update; sudo aptitude install <args>
autounmask-write⇒ Runs an
emergewhen mask failures. Good as
sudo useradd -m -G pair $1
cat-p⇒ Swipe stdout from another program by pid (using strace -p)
xsel -b <args>
There are some useful bits still over at: http://github.com/sharpsaw/local-dots
(Though, actually, I plan on merging that into here, somehow.)
From the vim-eunuch README.md:
:Unlink— Delete a buffer and the file on disk simultaneously.
:Unlink, but doesn't require a neckbeard.
:Rename— Rename a buffer and the file on disk simultaneously.
:Find— Run find and load the results into the quickfix list.
:Locate— Run locate and load the results into the quickfix list.
:SudoWrite— Write a privileged file with sudo.
:W— Write every open window. Handy for kicking off tools like guard.
Ask/tell/demand anything. I'll be receptive.