mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-22 09:35:50 +01:00
fix custom commands and add ed
command
This commit is contained in:
parent
dc52ae747d
commit
f33c9ae161
1 changed files with 13 additions and 2 deletions
|
@ -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