random rice
This commit is contained in:
parent
f080730c99
commit
60613b0a1d
17 changed files with 221 additions and 143 deletions
|
|
@ -16,19 +16,29 @@
|
|||
end
|
||||
'';
|
||||
};
|
||||
nix-prefetch-hash = {
|
||||
body = ''
|
||||
nix-hash --type sha256 --to-base64 (nix-prefetch-url $argv)
|
||||
'';
|
||||
};
|
||||
fish_jj_prompt = {
|
||||
body = ''
|
||||
if not command -sq jj
|
||||
return 1
|
||||
end
|
||||
|
||||
if not command -sq timeout
|
||||
return 1
|
||||
end
|
||||
if set -q FISH_JJ
|
||||
return 0
|
||||
end
|
||||
if not jj root &>/dev/null
|
||||
return 1
|
||||
end
|
||||
|
||||
# Generate prompt
|
||||
set -l info "$(
|
||||
jj log --ignore-working-copy --no-graph --color=always --revisions=@ --template "
|
||||
timeout 5 jj log --ignore-working-copy --no-graph --color=always --revisions=@ --template "
|
||||
separate(
|
||||
' ',
|
||||
self.change_id().shortest(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue