diff options
Diffstat (limited to 'shellrc.d/dev')
| -rw-r--r-- | shellrc.d/dev | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev index 74d692b..5db2fcd 100644 --- a/shellrc.d/dev +++ b/shellrc.d/dev @@ -61,6 +61,11 @@ if command -v bear >/dev/null; then bear --output build/compile_commands.json --append -- make "$@" } + bmmake() { + mkdir -p build + bear --output build/compile_commands.json --append -- make "-j$(($(nproc) * 2))" "-l$(nproc)" "$@" + } + alias mbmake='bmake -j$(($(nproc) * 2)) -l$(nproc)' fi @@ -75,11 +80,21 @@ nvim_config() ( if command -v nix 2>/dev/null >&2; then nrun() { - nix run . -- "$@" + nix run .?submodules=1# -- "$@" } nrun_() { local package="$1" shift - nix run ".#$package" -- "$@" + nix run ".?submodules=1#$package" -- "$@" + } +fi + +if command -v guix 2>/dev/null >&2; then + gx() { + if [[ -f ./channels.scm ]]; then + guix time-machine -C ./channels.scm -- "$@" + else + guix "$@" + fi } fi |
