Skip to content

Commit

Permalink
feat: add jq and bat (with alias)
Browse files Browse the repository at this point in the history
closes #36.
  • Loading branch information
shahinism committed Jul 25, 2024
1 parent 3be51ed commit c09beac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
rustc
# https://github.com/DataChefHQ/inception/issues/21
git
bat
jq
tealdeer
];

# This script is temporary due to two problems:
Expand All @@ -31,6 +34,9 @@
Release a new version and update the CHANGELOG.
'';
};
scripts.cat.exec = ''
bat "$@";
'';

languages.python = {
enable = true;
Expand Down
10 changes: 6 additions & 4 deletions includes/base.nix.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@

# https://devenv.sh/scripts/
scripts.hello.exec = "echo $GREET";
scripts.cat.exec = ''
bat "$@";
'';

{% block script %}{% endblock %}

enterShell = ''
hello
'';

# https://devenv.sh/packages/
packages = with pkgs; [
nixfmt-rfc-style
bat
jq
tealdeer
{% block packages %}{% endblock %}
];

Expand Down

0 comments on commit c09beac

Please sign in to comment.