(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| // HOWTO: load LABjs itself dynamically! | |
| // inline this code in your page to load LABjs itself dynamically, if you're so inclined. | |
| (function (global, oDOC, handler) { | |
| var head = oDOC.head || oDOC.getElementsByTagName("head"); | |
| function LABjsLoaded() { | |
| // do cool stuff with $LAB here | |
| } |
| #! /usr/bin/env python | |
| """ Convert values between RGB hex codes and xterm-256 color codes. | |
| Nice long listing of all 256 colors and their codes. Useful for | |
| developing console color themes, or even script output schemes. | |
| Resources: | |
| * http://en.wikipedia.org/wiki/8-bit_color | |
| * http://en.wikipedia.org/wiki/ANSI_escape_code |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| # -*- shell-script -*- | |
| # For more information, see the following URL. | |
| # http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#Accessing-On_002dLine-Help | |
| HELPDIR=~/.zsh_help | |
| function init-help () { | |
| [ -n "`alias run-help`" ] && unalias run-help | |
| autoload run-help |
| #!/bin/bash | |
| # vim: set sts=4 sw=4 et tw=0 : | |
| # | |
| # License: BSD | |
| AUTOMAGIC_MODE="true" | |
| OPACITY_100="0xffffffff" | |
| OPACITY_0="0x0" | |
| : ${XWININFO:=$(type -P xwininfo)} |
responsive flat color palette showing some wonderful colors. and it's all done with the beauty of css dreamyvoice haha
A Pen by Jan Reimers on CodePen.
| # fshow - git commit browser (enter for show, ctrl-d for diff, ` toggles sort) | |
| fshow() { | |
| local out shas sha q k | |
| while out=$( | |
| git log --graph --color=always \ | |
| --format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" | | |
| fzf --ansi --multi --no-sort --reverse --query="$q" \ | |
| --print-query --expect=ctrl-d --toggle-sort=\`); do | |
| q=$(head -1 <<< "$out") | |
| k=$(head -2 <<< "$out" | tail -1) |