Skip to content

Instantly share code, notes, and snippets.

@leophys
leophys / note.sh
Last active March 30, 2022 12:20 — forked from chrisdickinson/note.sh
#!/bin/bash
set -e
if [ "z$DEBUG" != "z" ]; then
set -x
fi
_NOTES_PATH=${NOTES_PATH:-~/notes}
export FZF_DEFAULT_OPTS="-m --ansi --preview-window 'right:70%' --preview 'bat --color=always --style=header,grid --line-range :300 ${_NOTES_PATH}/{}'"
@leophys
leophys / build-tmux.sh
Last active October 19, 2018 08:38 — forked from sdygt/build-tmux.sh
HOWTO build a statically linked tmux in one script (downloads and builds dependencies from source)
#!/bin/bash
if [ -z "${TARGETDIR}" ]; then
TARGETDIR=$(realpath $PWD)
fi
NCORES=${1:-"1"}
echo "TARGETDIR=${TARGETDIR}"
echo "NCORES=${NCORES}"