mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-21 21:04:41 +01:00
fix custom commands and add ed
command
This commit is contained in:
parent
dc52ae747d
commit
f33c9ae161
|
@ -782,9 +782,9 @@ def start_zellij [] {
|
|||
start_zellij
|
||||
|
||||
def nsp [
|
||||
program: string
|
||||
...programs: string
|
||||
] {
|
||||
nix shell $"nixpkgs#$program"
|
||||
nix shell ...($programs | each {|it| $"nixpkgs#($it)" })
|
||||
}
|
||||
|
||||
def lcr [
|
||||
|
@ -806,6 +806,17 @@ def glog [
|
|||
| split column "»¦«" commit subject name email date
|
||||
}
|
||||
|
||||
def ed [
|
||||
file: path
|
||||
...cmdargs: string
|
||||
] {
|
||||
let ext = $file | path parse | get extension;
|
||||
match $ext {
|
||||
"typ" => {|| zellij run --direction down -- typst watch $file --open ($cmdargs | str join ' ') }
|
||||
};
|
||||
hx $file
|
||||
}
|
||||
|
||||
alias gnix = cd ~/nix-configs;
|
||||
alias grepo = cd ~/Documents/repos;
|
||||
alias wh = wormhole-rs;
|
||||
|
|
Loading…
Reference in a new issue