add media cp aliases to zsh
This commit is contained in:
parent
720aaf0a93
commit
52b1728e2e
3 changed files with 74 additions and 54 deletions
|
|
@ -2,30 +2,35 @@
|
|||
with builtins;
|
||||
with lib.attrsets;
|
||||
let
|
||||
aliases = {
|
||||
"p" = ((import ./scripts.nix) pkgs).calc;
|
||||
"s" = "systemctl";
|
||||
"j" = "journalctl";
|
||||
"ju" = "journalctl -u";
|
||||
"jfu" = "journalctl -fu";
|
||||
"ls" = "${pkgs.eza}/bin/eza --git";
|
||||
"ll" = "${pkgs.eza}/bin/eza --git";
|
||||
"lt" = "${pkgs.eza}/bin/eza --long --tree -L 3";
|
||||
"open" = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||
"cb" = "${pkgs.wl-clipboard-rs}/wl-copy";
|
||||
scripts = (import ./scripts.nix) pkgs;
|
||||
aliases = with scripts;
|
||||
{
|
||||
"cp-mov" = cp-media "mov" "movies";
|
||||
"cp-ser" = cp-media "ser" "shows";
|
||||
"cp-ani" = cp-media "ani" "anime";
|
||||
"p" = calc;
|
||||
"s" = "systemctl";
|
||||
"j" = "journalctl";
|
||||
"ju" = "journalctl -u";
|
||||
"jfu" = "journalctl -fu";
|
||||
"ls" = "${pkgs.eza}/bin/eza --git";
|
||||
"ll" = "${pkgs.eza}/bin/eza --git";
|
||||
"lt" = "${pkgs.eza}/bin/eza --long --tree -L 3";
|
||||
"open" = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||
"cb" = "${pkgs.wl-clipboard-rs}/wl-copy";
|
||||
|
||||
"pull" = "${pkgs.git}/bin/git pull";
|
||||
"push" = "${pkgs.git}/bin/git push";
|
||||
"commit" = "${pkgs.git}/bin/git commit";
|
||||
"add" = "${pkgs.git}/bin/git add";
|
||||
"patch" = "${pkgs.git}/bin/git add -p";
|
||||
"amend" = "${pkgs.git}/bin/git commit --amend";
|
||||
"log" = "${pkgs.git}/bin/git log --all --graph --decorate";
|
||||
"status" = "${pkgs.git}/bin/git status";
|
||||
"checkout" = "${pkgs.git}/bin/git checkout";
|
||||
"rebase" = "${pkgs.git}/bin/git rebase";
|
||||
"stash" = "${pkgs.git}/bin/git stash";
|
||||
};
|
||||
"pull" = "${pkgs.git}/bin/git pull";
|
||||
"push" = "${pkgs.git}/bin/git push";
|
||||
"commit" = "${pkgs.git}/bin/git commit";
|
||||
"add" = "${pkgs.git}/bin/git add";
|
||||
"patch" = "${pkgs.git}/bin/git add -p";
|
||||
"amend" = "${pkgs.git}/bin/git commit --amend";
|
||||
"log" = "${pkgs.git}/bin/git log --all --graph --decorate";
|
||||
"status" = "${pkgs.git}/bin/git status";
|
||||
"checkout" = "${pkgs.git}/bin/git checkout";
|
||||
"rebase" = "${pkgs.git}/bin/git rebase";
|
||||
"stash" = "${pkgs.git}/bin/git stash";
|
||||
};
|
||||
# extracting any compressed format
|
||||
extract = ''
|
||||
extract () {
|
||||
|
|
@ -57,6 +62,7 @@ in
|
|||
enable = true;
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
dotDir = ".config/zsh";
|
||||
completionInit = ''
|
||||
autoload -Uz compinit
|
||||
if [[ -n ''${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue