From 4ab26233b7fa088388b8d1e7fed93edd34e53850 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 15 Apr 2021 17:13:03 +0300 Subject: [PATCH] grit aliases, tomp4 func --- profiles/core.nix | 3 +++ users/patriot/home.nix | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/profiles/core.nix b/profiles/core.nix index bfd8666..4da1643 100644 --- a/profiles/core.nix +++ b/profiles/core.nix @@ -43,6 +43,9 @@ in let ifSudo = string: mkIf config.security.sudo.enable string; in { + gtw = "${pkgBin "grit"} tree wnv"; + gt = pkgBin "grit"; + g = pkgBin "git"; grep = "${pkgs.ripgrep}/bin/rg"; diff --git a/users/patriot/home.nix b/users/patriot/home.nix index 4595c67..482b5bd 100644 --- a/users/patriot/home.nix +++ b/users/patriot/home.nix @@ -496,6 +496,10 @@ in fi ''; initExtra = '' + function tomp4 () { + ${pkgs.ffmpeg}/bin/ffmpeg -i $1 -c:v libx264 -preset slow -crf 30 -c:a aac -b:a 128k $2 + } + bindkey "$terminfo[kRIT5]" forward-word bindkey "$terminfo[kLFT5]" backward-word zstyle ':completion:*' menu select