(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:
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "io" | |
| "log" | |
| "io/ioutil" | |
| ) |
| #!/bin/bash | |
| while : | |
| do | |
| clear | |
| git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
| sleep 1 | |
| done |
| require 'openssl' | |
| def gen_key(name) | |
| key = OpenSSL::PKey::RSA.new 1048 | |
| file = File.new(name, "w") | |
| file.write(key) | |
| file.close | |
| end | |
| def get_key(name) |
| # No yielding | |
| class NormPerson | |
| attr_accessor :first, :last | |
| def initialize(first = nil, last = nil) | |
| @first = first | |
| @last = last | |
| end | |
| def hello | |
| puts "#{@first} #{@last} says hello!" |
| if "[email protected]" =~ /@(.*)/ | |
| $1 | |
| else | |
| raise "bad email" | |
| end | |
| # => "example.com" |