(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
:
#!/usr/bin/ruby | |
`cat ~/.bash_aliases | egrep '^alias' | sed 's/alias//'`.split("\n").each do |line| | |
parts = line.strip.split(/=/) | |
name, cmd = parts[0], parts[1].gsub(/('|")/,'') | |
file = '/home/%s/.config/fish/functions/%s.fish' % [`whoami`.strip, name] | |
content = [ 'function %s' % name, ' %s $argv;' % cmd, 'end' ].join("\n") | |
File.open(file, 'w+'){|io| io.write(content) } | |
end |
# 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 |
Comments? sacha@sachachua.com
[ | |
// Working in some additional Vim or Vim-like bindings; using 'g' as <leader> | |
// because it's homerow and unused for most commands: | |
{ "keys": ["g", "t"], "command": "next_view", "context": [{"key": "setting.command_mode"}] }, | |
{ "keys": ["g", "r"], "command": "prev_view", "context": [{"key": "setting.command_mode"}] }, | |
{ "keys": ["g", "n"], "command": "focus_side_bar", "context": [{"key": "setting.command_mode"}] }, | |
{ "keys": ["g", "w"], "command": "focus_group", "args": { "group": 0 } }, | |
{ "keys": ["g", "m"], "command": "find_under_expand", "context": [{"key": "setting.command_mode"}] }, | |
{ "keys": ["g", "s"], "command": "sftp_browse_server", "context": [{"key": "setting.command_mode"}] }, |
local function groupby(func, seq) | |
local t = {} | |
for _, val in ipairs(seq) do | |
local key = func(val) | |
t[key] = t[key] or {} | |
t[key][#t[key] + 1] = val | |
end | |
return t | |
end |
chr1 0 249250621 | |
chr1_gl000191_random 0 106433 | |
chr1_gl000192_random 0 547496 | |
chr2 0 243199373 | |
chr3 0 198022430 | |
chr4 0 191154276 | |
chr4_ctg9_hap1 0 590426 | |
chr4_gl000193_random 0 189789 | |
chr4_gl000194_random 0 191469 | |
chr5 0 180915260 |
#!/usr/bin/env bash | |
#============================================================================== | |
# GVim compile and install script for CentOS | |
# | |
# Description: Install VIM with +python/+python3 via pyenv installed pythons | |
# Author: Alisue <lambdalisue@hashnote.net> | |
# License: MIT | |
# GistID: 01996ca7877f72b860b2 | |
#============================================================================== |
This directory contains:
#' --- | |
#' title: "Something fascinating" | |
#' author: "Jenny Bryan" | |
#' date: "`r format(Sys.Date())`" | |
#' output: github_document | |
#' --- |