diff --git a/files/shell/.shellrc.alias b/files/shell/.shellrc.alias index 134d3b4..8d6f221 100644 --- a/files/shell/.shellrc.alias +++ b/files/shell/.shellrc.alias @@ -26,6 +26,16 @@ glg() { git log --graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" | fzf --ansi --no-sort --reverse --tiebreak=index --toggle-sort=\` --bind "ctrl-m:execute: echo {} | grep -o '[a-f0-9]\{7\}' | head -1 | xargs -I % sh -c 'git show --color=always % | less -R'"; } +# nix +alias nd="nix develop ." +alias ns="nix-shell" +alias nu="nix-channel --update" +alias nt="cp $HOME/.dots/templates/typst.nix . && echo 'Copied typst.nix'" + +tw() { + typst watch $1 --open +} + # ripgrep rf() { rg $1 --line-number --color=always | fzf --reverse --ansi --bind "enter:become($EDITOR {1} +{2})" --delimiter : @@ -40,7 +50,6 @@ alias dhs='du . -hs' alias diff_dir='diff -qr' alias g='git' alias l='ls --color --hyperlink' -alias nd="nix develop ." alias nssh='SSH_AUTH_SOCK= ssh' alias s='kitten ssh' alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE` diff --git a/templates/typst.nix b/templates/typst.nix index 32ec136..660b8b9 100644 --- a/templates/typst.nix +++ b/templates/typst.nix @@ -1,7 +1,8 @@ with (import {}); mkShell { buildInputs = [ - (typst.overrideAttrs { version = "0.11.1"; }) + (typst.overrideAttrs { version = "0.12.0"; }) + tinymist ]; }