(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
:
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
const response = await fetch(`https://catappapi.herokuapp.com/users/${userId}`) | |
const data = await response.json() | |
return data.imageUrl | |
} |
import { run } from 'runjs' | |
const task = { | |
'clean': () => { | |
run('rm -rf node_modules') | |
run('rm -rf build') | |
}, | |
'build:clean': () => { | |
run('rm -rf build') | |
run('mkdir build') |
"scripts": { | |
"clean": "rimraf dist/*", | |
"prebuild": "npm run clean -s", | |
"build": "npm run build:scripts -s && npm run build:styles -s && npm run build:markup -s", | |
"build:scripts": "browserify -d assets/scripts/main.js -p [minifyify --compressPath . --map main.js.map --output dist/main.js.map] | hashmark -n dist/main.js -s -l 8 -m assets.json 'dist/{name}{hash}{ext}'", | |
"build:styles": "stylus assets/styles/main.styl -m -o dist/ && hashmark -s -l 8 -m assets.json dist/main.css 'dist/{name}{hash}{ext}'", | |
"build:markup": "jade assets/markup/index.jade --obj assets.json -o dist", | |
"test": "karma start --singleRun", | |
"watch": "parallelshell 'npm run watch:test -s' 'npm run watch:build -s'", | |
"watch:test": "karma start", |
#!/usr/bin/env ruby | |
# | |
# This script is an astonishing feat of top notch | |
# rockstar craftsmanship. It totally uses artificial | |
# intelligence to extract colors out of tmTheme and | |
# build an itermcolors scheme file for iTerm2. | |
# | |
# I know this sounds crazy, but it actually knows | |
# approximately what colors should be used in the | |
# ANSI list, and tries to find nearest colors from |
git config --global user.name "<First Last>"
git config --global user.email <[email protected]>
git config --global core.editor <vim>
git config --global color.ui true
{
"build-js": "browserify browser/main.js | uglifyjs -mc > static/bundle.js",
"build-css": "cat static/pages/*.css tabs/*/*.css",
"build": "npm run build-js && npm run build-css",
"watch-js": "watchify browser/main.js -o static/bundle.js -dv",
"watch-css": "catw static/pages/*.css tabs/*/*.css -o static/bundle.css -v",
"watch": "npm run watch-js & npm run watch-css",
Clone this repository to ~/.zsh/zsh-autosuggestions (or anywhere else): | |
git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh/zsh-autosuggestions | |
Clone zsh-syntax-highlighting repository to ~/.zsh/zsh-syntax-highlighting (or anywhere else): | |
git clone git://github.com/jimmijj/zsh-syntax-highlighting ~/.zsh/zsh-syntax-highlighting | |
Load and enable autosuggestions; copy the following snippet and put it to your .zshrc file: | |
# Load zsh-syntax-highlighting. | |
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |