Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Scripts and dotfiles for working on various Linux systems (based on `...`)
tree: b55c987af7

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.sh
.vim/bundle
bin
...deps
.gitmodules
README.md
modified-qwerty.map

README.md

linux-dots

Scripts and dotfiles for working on various Linux systems (based on ...)

Much TODO to be had around here.

Context

Why "-dots"? See the system I start with:

curl sharpsaw.org/init | sh

  • ,M ⇒ Configure & make install, passing $DOT&CONFIGURE&ARGS to ./configure, and using $MAKE&INSTALL&SU prepended to the 'make install' command.
  • ,colortest ⇒ Print 8- and 256-color tables.
  • ,config-kernel-installcd /usr/src/linux && sudo make menuconfig && ,kernel-install "$@"
  • ,gdb-bt-fullexe=$1
  • ,i ⇒ Package install using emerge or aptitude, whichever's available.
  • ,init-addsudo /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.
  • ,ls ⇒ List the files belonging to a given package
  • ,s ⇒ Package search using eix or aptitude, whichever's present.
  • ,var-log ⇒ Tail -f all non-binary, non-"old" log files in /var/log
  • ,xsession-errors ⇒ A simple tail on ~/.xsession-errors. Will probably add grep -v's to filter.
  • aptUsudo aptitude update; sudo aptitude dist-upgrade "$@"
  • apti ⇒ Use aptitude or apt-get to install a package.
  • apts ⇒ Use aptitude or apt-cache to search for a package.
  • aptshaptitude show "$@"
  • aptusudo aptitude update "$@"
  • aptuisudo aptitude update; sudo aptitude install "$@"
  • autounmask-write ⇒ Runs an emerge when mask failures. Good as autounmask-write !!
  • brogrammersudo useradd -m -G hax0rs $1
  • cat-p ⇒ Swipe stdout from another program by pid (using strace -p)
  • clipxsel -b "$@"
  • fack ⇒ find -iname + ack -ila
  • finamefind . -iname "*$1*"
  • rm-[ ! -s "$1" ] || (echo "File not empty, not deleting."; exit 37)
  • ssh-port-forward ⇒ Just a handy script, because I find this invocation confusing. Don't forget -v.

There are some useful bits still over at: http://github.com/sharpsaw/local-dots

(Though, actually, I plan on merging that into here, somehow.)

vim-eunuch

From the vim-eunuch README.md:

  • :Unlink — Delete a buffer and the file on disk simultaneously.
  • :Remove — Like :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.

Contact

rking-linux-dots@sharpsaw.org

Ask/tell/demand anything. I'll be receptive.

Something went wrong with that request. Please try again.