begin murex aliases
This commit is contained in:
parent
67702255a2
commit
0562e2235d
4 changed files with 80 additions and 27 deletions
|
@ -1,11 +1,63 @@
|
|||
{pkgs, ...}: {
|
||||
programs.murex = {
|
||||
enable = true;
|
||||
useXdgConfig = true;
|
||||
direnv = true;
|
||||
managePlugins = true;
|
||||
profile = ''
|
||||
config: set shell auto-cd true
|
||||
|
||||
function fresh {
|
||||
clear
|
||||
echo
|
||||
~/.nix/header.sh
|
||||
}
|
||||
|
||||
function mnt {
|
||||
mount -> column -t -> culr -t 80 -o roygbiv-split
|
||||
}
|
||||
|
||||
function la_culr (l_path: str "") {
|
||||
if { $l_path } {
|
||||
eza -lha --group-directories-first --icons --color=always $l_path -> culr -t 80 -o roygbiv-split
|
||||
} else {
|
||||
eza -lha --group-directories-first --icons --color=always -> culr -t 80 -o roygbiv-split
|
||||
}
|
||||
}
|
||||
|
||||
function ls_culr (l_path: str "") {
|
||||
if { $l_path } {
|
||||
eza -lh --group-directories-first --icons --color=always $l_path -> culr -t 80 -o roygbiv-split
|
||||
} else {
|
||||
eza -lh --group-directories-first --icons --color=always -> culr -t 80 -o roygbiv-split
|
||||
}
|
||||
}
|
||||
|
||||
function ps_culr (opts: str "") {
|
||||
if { $opts } {
|
||||
ps ww$opts | culr -t 80 -o roygbiv-split
|
||||
} else {
|
||||
ps ww | culr -t 80 -o roygbiv-split
|
||||
}
|
||||
}
|
||||
|
||||
alias gs=git status
|
||||
alias gcl=git clone
|
||||
alias ga=git add
|
||||
alias gcb=git checkout -b
|
||||
alias gco=git checkout
|
||||
alias gl=git pull
|
||||
alias gp=git push
|
||||
alias gd=git diff
|
||||
alias gcam=git commit -am
|
||||
alias gcm=git commit -m
|
||||
alias gr=git restore
|
||||
alias gm=git merge
|
||||
alias l=ls_culr
|
||||
alias la=la_culr
|
||||
alias p=ps_culr
|
||||
alias z=j
|
||||
|
||||
fresh
|
||||
'';
|
||||
plugins = let
|
||||
inherit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue