Show full output of command :hi in scratch window:
:Redir hi
Show full output of command :!ls -al in scratch window:
Searching can be an efficient way to navigate the current buffer.
The first search commands we learn are usually / and ?. These are seriously cool, especially with the incsearch option enabled which lets us keep typing to refine our search pattern. / and ? really shine when all we want is to jump to something we already have our eyeballs on but they are not fit for every situation:
Searching can be an efficient way to navigate the current buffer.
The first search commands we learn are usually / and ?. These are seriously cool, especially with the incsearch option enabled which lets us keep typing to refine our search pattern. / and ? really shine when all we want is to jump to something we already have our eyeballs on but they are not fit for every situation:
| #!/bin/zsh | |
| # git-fshow - git commit browser | |
| # | |
| # https://gist.github.com/akatrevorjay/9fc061e8371529c4007689a696d33c62 | |
| # https://asciinema.org/a/101366 | |
| # | |
| git-fshow() { | |
| local g=( | |
| git log |
| #!/usr/bin/env bash | |
| set -e | |
| branch=$(git rev-parse --abbrev-ref HEAD) | |
| if [[ $branch == "master" ]]; then | |
| xelatex cv | |
| git checkout gh-pages | |
| pdf2htmlEX --process-outline 0 --zoom 1.6 cv.pdf |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "scotch/box" | |
| config.vm.network "private_network", ip: "192.168.33.10" | |
| config.vm.hostname = "scotchbox" | |
| config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"] |
| #compdef repos | |
| typeset -A opt_args | |
| local context state line | |
| _arguments -s -S \ | |
| '--add-git[add a github configuration]'\ | |
| '--add-bit[add a bitbucket configuration]'\ | |
| '--available[List all available configurations.]'\ | |
| '--check[list all repos not in mrconfig]'\ |
If you're using GNU make and you need help debugging a makefile then there's a single line your should add. And it's so useful that you should add it to every makefile you create.
It's:
print-%: ; @echo $=$($) It allows you to quickly get the value of any makefile variable. For example, suppose you want to know the value of a variable called SOURCE_FILES. You'd just type:
make print-SOURCE_FILES If you are using GNU make 3.82 or above it's not even necessary to modify the makefile itself. Just do
| #!/usr/bin/env bash | |
| # Browse Ramda documentation in Terminal | |
| # Requires jq and a tool such as fzf or peco for interactive filtering | |
| LATEST="https://raw.githubusercontent.com/raine/ramda-json-docs/gh-pages/latest.json" | |
| DOCS_URL="http://ramdajs.com/docs/" | |
| json=$(curl -s $LATEST) | |
| functions=$(echo "$json" | jq -r '.[] | if .sig and (.sig | length > 0) then .name + " :: " + .sig else .name end') |
| #compdef savesolarized | |
| _arguments "1: :($(lssolarized | tr "\n" " "))" |