Skip to content

Commit

Permalink
Use better script import for wakatime on bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Dec 22, 2023
1 parent ae461e4 commit f3fd5ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 25 deletions.
22 changes: 0 additions & 22 deletions .bashrc

This file was deleted.

15 changes: 12 additions & 3 deletions home/bash/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{ ... }:
{
{ pkgs, ... }:
let
bash-wakatime = pkgs.fetchFromGitHub {
owner = "gjsheep";
repo = "bash-wakatime";
rev = "c97292398936393c3f985f4924a3c234793ca3b8";
sha256 = "sha256-Heq/VxfCqFhnYxAm2ejymANdPmZ5uNixuZiuC/53VQE=";
};
in {
programs.bash = {
enable = true;

Expand All @@ -16,7 +23,9 @@

dodo = "shutdown now";

bashrcExtra = builtins.readFile ./../../.bashrc;
bashrcExtra = ''
source ${bash-wakatime}/bash-wakatime.sh
'';
};
};

Expand Down

0 comments on commit f3fd5ee

Please sign in to comment.