Skip to content

Latest commit

 

History

History

bin

Mislav's command-line utilities

The following is a non-comprehensive list.

Code helpers

Git utilities

Terminal helpers

  • ansi2html [-w] [--css]
    Convert terminal color ANSI escape sequences to HTML.
  • colordump [-b]
    Dump a table of ASCII colors to a 256-color compatible terminal. With -b, switch to outputting background color samples.
  • crlf -i src/*
    Convert Windows to Unix line breaks. Use -i to change files in-place.
  • lineprof
    Annotates each line of input with the number of milliseconds elapsed since the last line. Useful for figuring out slow points of output-producing programs.
  • stdev
    Calculate mean and standard deviation from a stream of numbers passed as lines of input.

System utilities

  • battery
    Show MacBook battery level formatted for tmux status bar.
  • wifi-pass
    Shows SSID and password for the currently connected network. Requires sudo.

Writing checks

  • eprime
    Highlights usage of the verb "to be" when you're trying to write E-Prime.
  • passive
    Highlights possible usage of passive language.
  • weasel
    Highlights weasel words (empty words that sound like they have meaning).

Tmux utilities

  • tmux-ps <pattern>
    Switch to tmux window which hosts the tty that is controlling the process matching .
  • tmux-session
    Save and restore the state of tmux sessions and windows.
  • tmux-switch-session [<name>]
    Switches to the tmux session that starts with the name given, or to the previously attached session when name is blank.
  • tmux-vim-select-pane
    Like tmux select-pane, but sends a <C-h/j/k/l> keystroke if Vim is running in the current pane, or only one pane exists.