···11-source (direnv hook fish | psub)
22-33-if not functions -q fundle
44- eval (curl -sfL https://git.io/fundle-install)
55-end
66-fundle plugin 'hauleth/agnoster'
77-fundle plugin 'oh-my-fish/plugin-foreign-env'
88-fundle init
99-1010-set -gx MIX_XDG 1
1111-1212-ulimit -n 10480
1313-1414-# if type nix-locate 2>/dev/null >/dev/null
1515-# function nix_locate_bin --on-event fish_command_not_found
1616-# if not test -t 1
1717-# __fish_default_command_not_found_handler $argv[1]
1818-# end
1919-2020-# set -l cmd $argv[1]
2121-# set -l attrs (nix-locate --minimal --no-group --type x --type s --top-level --whole-name --at-root "/bin/$cmd")
2222-2323-# switch (count $attrs)
2424-# case 0
2525-# echo "$cmd: command not found" >&2
2626-# case 1
2727-# echo "Found one package with $cmd, trying to run in 1s" >&2
2828-# sleep 1
2929-# if nix-build --no-out-link -A $attrs "<nixpkgs>"
3030-# nix-shell -p $attrs --run (printf "'%s' " $argv)
3131-# return
3232-# else
3333-# echo "Failed to install nixpkgs.$attrs"
3434-# echo "$cmd: command not found"
3535-# end
3636-# case '*'
3737-# echo "$cmd is not installed. You can find it in:" >&2
3838-# printf "\tnix-env -iA nixpkgs.%s\n" $attrs >&2
3939-# end
4040-# end
4141-# end
-3
fish/.config/fish/functions/e.fish
···11-function e --wrap "$EDITOR"
22- eval "$EDITOR" $argv
33-end
-3
fish/.config/fish/functions/g.fish
···11-function g --description 'Less typing more work!' --wrap git
22- git $argv
33-end
···11-function mcd --description="Create a directory and set CWD"
22- command mkdir $argv
33- if test $status = 0
44- switch $argv[(count $argv)]
55- case '-*'
66- case '*'
77- cd $argv[(count $argv)]
88- return
99- end
1010- end
1111-end
···11+require('impatient').enable_profile()
22+13-- Fennel loader, default one do not work well with NeoVim so there is custom
24-- one
35_G.fennel = require('fennel')