Skip to content

Instantly share code, notes, and snippets.

View felixSchl's full-sized avatar

Felix Schlitter felixSchl

View GitHub Profile
@felixSchl
felixSchl / spago-compile
Last active March 15, 2020 21:16
Emacs 'M-x compile' compatible 'purs compile' output (spago only)
#!/bin/bash
# compilation-mode compatible spago build output
set -eo pipefail
root=$(git rev-parse --show-toplevel)
PATH=$root/node_modules/.bin:$PATH
output=$(spago 3>&2 2>&1 1>&3 --quiet build -u --json-errors || { :; })
n_errors=$(jq <<< "$output" '.errors | length')
n_warnings=$(jq <<< "$output" '.warnings | length')
@felixSchl
felixSchl / tmux-completions.sh
Created March 21, 2023 01:19
TMUX FZF integration
#!/bin/bash
#
# Author: Felix Schlitter
# Description:
# Manage sessions using FZF
#
# Place this into your .bashrc after installing FZF,
# Then update your .tmux.conf and create key-bindings. Example:
#
# unbind s