This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
| """ | |
| Results: | |
| multiple_update: 33 ms | |
| copy_and_update: 27 ms | |
| dict_constructor: 29 ms | |
| kwargs_hack: 33 ms | |
| dict_comprehension: 33 ms | |
| concatenate_items: 81 ms | |
| union_items: 81 ms |
| # GIT heart FZF | |
| # ------------- | |
| is_in_git_repo() { | |
| git rev-parse HEAD > /dev/null 2>&1 | |
| } | |
| fzf-down() { | |
| fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
| } |
| [merge] | |
| tool = vimdiff | |
| [mergetool] | |
| prompt = true | |
| [mergetool "vimdiff"] | |
| cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J' | |
| [difftool] | |
| prompt = false | |
| [diff] | |
| tool = vimdiff |
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
| #!/usr/bin/env bash | |
| # show-args is a Python script that prints sys.argv[1:] | |
| echo '$@ =' "$@" | |
| echo 'no quotes: $@' | |
| show-args $@ | |
| echo 'quotes: "$@"' | |
| show-args "$@" | |
| AT="$@" | |
| echo 'quotes: "$AT" where AT="$@"' | |
| show-args "$AT" |