Brennen Bearnes f975e95616 | 7 years ago | |
---|---|---|
apache2 | 8 years ago | |
etc/default | 8 years ago | |
home | 7 years ago | |
.gitignore | 8 years ago | |
README.md | 8 years ago | |
install.sh | 8 years ago | |
ns-control | 8 years ago |
This repo is for dotfiles, utility scripts, and other things in my personal setup. Ideally, it includes most of the bits and pieces that make a personal machine usable for me.
I mostly use Debian and Debian-like GNU/Linux systems (including Ubuntu). I usually edit text in Vim, and use the xmonad tiling window manager.
I have a partially-finished book about the command line which may be relevant.
As of October 2016, most of this collection is actively maintained, although it doesn't meet the standards of quality, consistency, or documentation you might quite reasonably want from a real software project.
(Then again, neither do most software projects.)
I thief ideas and bits of configuration from the following people and projects:
These days I use ZSH on personal systems and Bash when writing tutorials or doing tech support. I like to keep lots and lots of history. I think shell scripting is a nightmare for most real tasks, but I do it sometimes anyway.
.bashrc
.zshrc
- nothing fancy.sh_common
- aliases and variables for both Bash and ZSH;
no Bash compatibility guarantees here, since I mostly don't use custom
aliases in BashScripts here fall into a handful of categories:
Most of these are unlikely to be portable, useful, or documented.
chrome-incognito
: run Google Chrome in incognito modecheat
: a place to hang a personal cheatsheet of sortsdmenu_unique
: run dmenu with big fonts and vertical, only showing each entry oncedog
: concatenate argument strings and stdinfilter-decorate
: splat some text dingbats into HTML I write sometimesfilter-exec-raw
: like above, but differentfilter-exec
: replace text in-between markers with result of shell-script executionfilter-markdownify
: convert a few things in old DigitalOcean tutorials to Markdownfilter-vertical
: verticalize a stringfirefox-fromselection
: open a selected url in firefoxfragment-bullet
: print out a "random" dingbat characterget-external-ip
: print public IP addressgif-sel
, gif-sel-4
, gif-sel-15
: take an animated gif of selected screen regiongit-diff-wrapper
: use vim with git-diff-tool
git-local-to-remote-status
grab
, grab-sel
: take a screenshot, take a screenshot of a selected regionjson_decode.php
: decode JSON into PHP data structuresjsonprint.pl
: pretty-print JSON with Perljump-to-window
: use wmctrl
and dmenu
to pick a window to jump tolistusers
: print an HTML list of usersnotesession
: start a tmux named session for notesphotocp
: copy photos from various media to a home directory locationpmwhich
: find the on-filesystem location of a Perl modulerightnow
: print the current time in a variety of formatssaytime
: speak the time with Festivaltimelog
: parse a timelogging format (I use this to bill for contracting)today
: print a datetodaydir
: find a p1k3 dir for the current dateuni
: search unicode codepoint names (via @chneukirchen)unsorted-unique
: print all lines of input once (just an awk
one-liner)wip
: move a p1k3 file into a work-in-progress directorywords
: split input into individual wordsxm
: call xmodmap (dumb)xmonad.start
: personal version of xmonad startup scriptxtfix
: do a subtle color shift within the current xtermyank
, unyank
: stash a file path, move it to the current directoryI use tmux
for terminal multiplexing (i.e., most of what GNU Screen does).
In practice, this means that I rely on it for
ssh
or mosh
sessionMy .tmux.conf
is brief, but does contain one useful
snippet for correcting weird Esc-key behavior in Vim.
.vimrc
- see file for installation details.xmodmap
bin/xm
, which is dumb.xinitrc
.hacksrc
if it exists.Xresources
tweaks xterm behavior and a number of fonts
.hacksrc
is linked to
.hacksrc_hi_dpi
.xmobarrc
, .xmonad/
bin/xmonad.start
for a drop-in replacement for
default XMonad startup on some Debian-like systems, including Gnome/Unity
stuff and the like. Perpetually not-quite-right.See instructions in ns-control.