]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/tmsu.nix
julm: oignon: install transmission-remote-gtk
[julm/julm-nix.git] / home-manager / profiles / tmsu.nix
1 { pkgs, ... }:
2 {
3 home.packages = [
4 pkgs.tmsu
5 ];
6 programs.bash = {
7 shellAliases = {
8 m = "tmsu";
9 ml = "tmsu files";
10 mmv = "tmsu-mv";
11 mt = "tmsu-tag";
12 mts = "tmsu tags";
13 mu = "tmsu-untag";
14 };
15 initExtra = ''
16 tmsu-tag () {
17 local tags
18 tags=$1; shift
19 tmsu tag --tags "$tags" "$@"
20 }
21 tmsu-mv () {
22 mv "$@" &&
23 tmsu repair --manual -- "$@"
24 }
25 tmsu-untag () {
26 local tags
27 tags=$1; shift
28 tmsu untag --tags "$tags" "$@"
29 }
30 '';
31 };
32 }