···11+--theme="Monokai Extended"
22+33+# This is not supported on all terminal emulators (like tmux, by default)
44+--italic-text="always"
55+66+# This is the default, but when using `bat` as $PAGER we want to go back to less
77+--pager="less"
88+99+--map-syntax="WORKSPACE:Python"
1010+--map-syntax="*.bzl:Python"
1111+--map-syntax="*.bazel:Python"
+9-2
.config/fish/conf.d/50-config.fish
···11# Set fish_user_paths here instead of fish_variables to expand $HOME per-machine
22-set -Ux fish_user_paths \
22+set -gx fish_user_paths \
33 ~/.cargo/bin \
44 ~/Library/Python/3.7/bin
5566# Set a proper TTY for gpg commands to work
77set -x GPG_TTY (tty)
8899+# Use `bat` as pager if it present
1010+if command -qs bat
1111+ set -gx PAGER (which bat)
1212+ set -gx MANPAGER (which col)" -bx | "(which bat)" --plain --language Manpage"
1313+ set -gx GIT_PAGER (which bat)" --plain"
1414+end
1515+916# Set global cask dir for 'personal' computers
1017if command -qs yadm && test (yadm config local.class) = "personal"
1118 set -x HOMEBREW_CASK_OPTS "--appdir=~/Applications"
···1522 set -gx DOCKER_NAME (sed -E 's/.*DOCKER_NAME=(.+)/\1/' /etc/profile.d/docker_name.sh)
1623end
17241818-if status is-interactive; and status is-login
2525+if status is-interactive
1926 # Run nvm to update fish_user_paths for npm installs. Allow failure if running
2027 # outside home directory (no .nvmrc found), and run in background to avoid
2128 # blocking the shell from starting
···11# This isn't necessary for yadm, but git-crypt tries to traverse these files
22-/Library/
22+33/.Trash/
44/.cache/
55+66+# This weird multi-entry is required to support nested '!' exceptions
77+/Library/*
88+!/Library/Application Support
99+/Library/Application Support/*
1010+!/Library/Application Support/Code
1111+/Library/Application Support/Code/*
1212+!/Library/Application Support/Code/User
1313+/Library/Application Support/Code/User/*Storage
···11{
22- /*
33- // Place your snippets for C++ here. Each snippet is defined under a snippet name and has a prefix, body and
44- // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
55- // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
66- // same ids are connected.
77- // Example:
88- "Print to console": {
99- "prefix": "log",
1010- "body": [
1111- "console.log('$1');",
1212- "$2"
1313- ],
1414- "description": "Log output to console"
1515- }
1616- */
1717- "class declaration": {
22+ "Class declaration": {
183 "description": "Generates Rule of 5 for a class",
194 "prefix": "class",
205 "body": [
···3318 "};"
3419 ],
3520 },
3636- "struct declaration": {
2121+ "Struct declaration": {
3722 "description": "Generates Rule of 5 for a struct",
3823 "prefix": "struct",
3924 "body": [
···4934 "};"
5035 ],
5136 },
5252- "ignore diagnostic": {
3737+ "Ignore diagnostic": {
5338 "description": "Compiler directive to skip a warning",
5439 "prefix": [
5540 "#diag"
···6348 "#pragma GCC diagnostic pop",
6449 ]
6550 },
6666- "disable clang-format": {
5151+ "Disable clang-format": {
6752 "description": "Comments to disable clang-format",
6853 "prefix": [
6954 "clang",
···11{
22- // Place your snippets for go here. Each snippet is defined under a snippet name and has a prefix, body and
33- // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
44- // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
55- // same ids are connected.
66- // Example:
77- // "Print to console": {
88- // "prefix": "log",
99- // "body": [
1010- // "console.log('$1');",
1111- // "$2"
1212- // ],
1313- // "description": "Log output to console"
1414- // }
152 "Fprintln to stderr": {
163 "prefix": "ep",
174 "body": [
···2411 "fmt.Fprintf(os.Stderr, \"$1\", $2)"
2512 ]
2613 }
2727-}1414+}
···11-{
22- // Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
33- // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
44- // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
55- // same ids are connected.
66- // Example:
77- // "Print to console": {
88- // "prefix": "log",
99- // "body": [
1010- // "console.log('$1');",
1111- // "$2"
1212- // ],
1313- // "description": "Log output to console"
1414- // }
1515-}
···11{
22- // Place your snippets for rust here. Each snippet is defined under a snippet name and has a prefix, body and
33- // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
44- // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
55- // same ids are connected.
66- // Example:
77- // "Print to console": {
88- // "prefix": "log",
99- // "body": [
1010- // "console.log('$1');",
1111- // "$2"
1212- // ],
1313- // "description": "Log output to console"
1414- // }
1515- "dbg!": {
1616- "prefix": "dbg",
22+ "Debug Macro": {
33+ "prefix": [
44+ "dbg",
55+ "dbg"
66+ ],
177 "body": [
188 "dbg!($1)",
199 ],
2020- "description": "Fix typo of dgb -> dbg!"
1010+ "description": "Debug-print an expression and return its value"
2111 },
2222- "dbg! typo": {
2323- "prefix": "dgb",
2424- "body": [
2525- "dbg!($1)",
2626- ],
2727- "description": "Fix typo of dgb -> dbg!"
2828- }
2929-}1212+}