- Tab completes the current token. Shift, Tab completes the current token and starts the pager's search mode.
- Alt+←,Left and Alt+→,Right move the cursor one word left or right (to the next space or punctuation mark), or moves forward/backward in the directory history if the command line is empty. If the cursor is already at the end of the line, and an autosuggestion is available, Alt+→,Right (or Alt+F) accepts the first word in the suggestion.
- Shift,←,Left and Shift,→,Right move the cursor one word left or right, without stopping on punctuation.
- ↑ (Up) and ↓ (Down) (or Control+P and Control+N for emacs aficionados) search the command history for the previous/next command containing the string that was specified on the commandline before the search was started. If the commandline was empty when the search started, all commands match. See the history section for more information on history searching.
- Alt+↑,Up and Alt+↓,Down search the command history for the previous/next token containing th
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// formatters can be used in any hook | |
formatters { | |
["cargo"] {} // defaults to "*.rs" | |
["go"] {} // defaults to "*.go" | |
["prettier"] { | |
glob = new { "*.ts" } | |
} | |
} | |
// linters can be used in any hook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is an example "usage" definition | |
# it defines a subset of the tool "rtx". What syntax it uses for CLI arguments | |
# as well as how it interacts with env vars and config files | |
# usage can be thought of as "swagger for CLIs" | |
# The purpose is that having a language-agnostic definition for CLIs we can | |
# build tools like generic autocompletion (so you don't need to learn how to write complex bash/zsh completions) | |
# It would also allow us to build documentation tools (browser or CLI), scaffold out CLIs, and build | |
# parsing/validation libraries to make CLI development faster. | |
# CLI parsing starts here. This is close, but probably not identical to docopt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by rust2rpm 24 | |
%bcond_without check | |
%global debug_package %{nil} | |
%global crate gumdrop_derive | |
Name: rust-gumdrop_derive | |
Version: 0.8.1 | |
Release: %autorelease | |
Summary: Custom derive support for gumdrop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--{ | |
"Title": "Go 1.15 Release Notes", | |
"Path": "/doc/go1.15" | |
}--> | |
<!-- | |
NOTE: In this document and others in this directory, the convention is to | |
set fixed-width phrases with non-fixed-width spaces, as in | |
<code>hello</code> <code>world</code>. | |
Do not send CLs removing the interior tags from such phrases. | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# Downloads a node tarball from https://nodejs.org/dist/ and extracts just | |
# the binary into the current directory. Chiefly we use this to get a node | |
# binary for uploading to manifold. | |
if [[ $# -ne 4 ]]; then | |
echo "USAGE: $0 <node_version> <os> <arch> <filename>" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euxo pipefail | |
# Downloads a node tarball from https://nodejs.org/dist/ and extracts just | |
# the binary into the current directory. Chiefly we use this to get a node | |
# binary for uploading to manifold. | |
if [[ $# -ne 4 ]]; then | |
echo "USAGE: $0 <node_version> <os> <arch> <filename>" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool pid_id_active(pid_t pid) { | |
return kill(pid, 0) == 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream> | |
int main() { | |
std::ofstream f{"myfile.txt"}; | |
f << "sometext" << std::endl; | |
if (!f) | |
throw std::system_error(errno, std::system_category(), "failed to open file"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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 | |
$SelectAll <M-A> | |
$Undo <M-Z> |
NewerOlder