Skip to content

Instantly share code, notes, and snippets.

h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
f activate link hints mode to open in current tab
F activate link hints mode to open in new tab
r reload
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 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

This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
@maxim-belkin
maxim-belkin / standalone_linuxbrew.sh
Last active March 14, 2019 21:47
standalone linuxbrew
#!/bin/bash
# (Fun) fact: we are calling 'exit' many times throughout the script
# Consequence: we have to make sure that the script is NOT sourced
if [[ $(basename -- $0) != $(basename -- ${BASH_SOURCE[0]}) ]]; then
# echo "Please call this script as 'bash ${BASH_SOURCE[0]}'" >&2;
echo "Calling this script via bash"
bash "${BASH_SOURCE[0]}"
return 0;
fi