fighting with git config on win32, again...
53cb88a0fb7f24c60f5ab8c20d873b382063b5b6
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
- Parent 1: abe4bfdeb6d9
bugabingas dorkfiles
53cb88a0fb7f24c60f5ab8c20d873b382063b5b6
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
+1016 / −3563 text lines
+80 / −83 text lines
wezterm~/.config/weztermneovim~/AppData/Local/nvimnushell/completions~/AppData/Roaming/nushell/completionsnushell/scripts~/AppData/Roaming/nushell/scriptsnushell/config.nu~/AppData/Roaming/nushell/config.nunushell/env.nu~/AppData/Roaming/nushell/env.nunushell/login.nu~/AppData/Roaming/nushell/login.nunushell/gen-aliases.nu~/AppData/Roaming/nushell/gen-aliases.nubat/config~/AppData/Roaming/bat/configbottom~/AppData/Roaming/bottomgit/gitconfig~/.config/git/configgit/gitconfig.isp~/.config/git/.gitconfig.includeneovide~/AppData/Roaming/neovidessh~/.ssh/configstarship~/.config/starshipsubversion/config~/AppData/Roaming/Subversion/configsubversion/diff.cmdX:/bin/diff.cmdsubversion/merge.cmdX:/bin/merge.cmdtopgrade/topgrade.toml~/AppData/Roaming/topgrade.tomltopgrade/win32.toml~/AppData/Roaming/topgrade.d/win32.tomltopgrade/lnx.toml~/AppData/Roaming/topgrade.d/lnx.tomlyazi/init.lua~/.config/yazi/init.luayazi/package.toml~/.config/yazi/package.tomlyazi/keymap.toml~/.config/yazi/keymap.tomlyazi/theme.toml~/.config/yazi/theme.tomlyazi/yazi.toml~/.config/yazi/yazi.tomlzed\keymap.json~/AppData/Roaming/zed/keymap.jsonzed\settings.json.json~/AppData/Roaming/zed/settings.jsonwezterm
~/.config/wezterm
neovim
~/AppData/Local/nvim
mini-nvim
~/AppData/Local/mini-nvim
nushell/completions
~/AppData/Roaming/nushell/completions
nushell/scripts
~/AppData/Roaming/nushell/scripts
nushell/config.nu
~/AppData/Roaming/nushell/config.nu
nushell/env.nu
~/AppData/Roaming/nushell/env.nu
nushell/login.nu
~/AppData/Roaming/nushell/login.nu
nushell/gen-aliases.nu
~/AppData/Roaming/nushell/gen-aliases.nu
bat/config
~/AppData/Roaming/bat/config
bottom
~/AppData/Roaming/bottom
git/gitconfig
~/.config/git/config
git/gitconfig.isp
~/.config/git/.gitconfig.include
neovide
~/AppData/Roaming/neovide
ssh
~/.ssh/config
starship
~/.config/starship
subversion/config
~/AppData/Roaming/Subversion/config
subversion/diff.cmd
X:/bin/snv.diff.cmd
subversion/merge.cmd
X:/bin/snv.merge.cmd
topgrade/topgrade.toml
~/AppData/Roaming/topgrade.toml
topgrade/win32.toml
~/AppData/Roaming/topgrade.d/win32.toml
yazi/init.lua
~/AppData/Roaming/yazi/config/init.lua
yazi/package.toml
~/AppData/Roaming/yazi/config/package.toml
yazi/keymap.toml
~/AppData/Roaming/yazi/config/keymap.toml
yazi/yazi.toml
~/AppData/Roaming/yazi/config/yazi.toml
zed\keymap.json
~/AppData/Roaming/zed/keymap.json
zed\settings.json
~/AppData/Roaming/zed/settings.json
+143 / −140 text lines
git/gitconfig~/.config/git/configgit/gitconfig.bugabinga~/.config/git/.gitconfig.includegh~/.config/ghsubversion/config~/.subversion/configsubversion/diff~/.local/bin/svn.diffsubversion/merge~/.local/bin/svn.mergetools/git-info~/.local/bin/git-infocargo/config.toml~/.cargo/config.tomlbat/config~/.config/bat/confignushell/config.nu~/.config/nushell/config.nunushell/env.nu~/.config/nushell/env.nunushell/login.nu~/.config/nushell/login.nunushell/gen-aliases.nu~/.config/nushell/gen-aliases.nunushell/scripts~/.config/nushell/scriptsnushell/completions~/.config/nushell/completionstopgrade/topgrade.toml~/.config/topgrade.tomlwezterm~/.config/weztermwezterm/wezterm.service~/.config/systemd/user/wezterm.servicessh/config~/.ssh/configneovim~/.config/nvimmini-nvim~/.config/nvimenvironment.d~/.config/environment.dfonts~/.local/share/fontsfontconfig~/.config/fontconfigneovide~/.config/neovidezed/keymap.json~/.config/zed/keymap.jsonzed/settings.json~/.config/zed/settings.jsonrbw~/.config/rbwbroot~/.config/brootaerc/binds.conf~/.config/aerc/binds.confaerc/aerc.conf~/.config/aerc/aerc.confunison/common~/.unison/commonunison/fedora.prf~/.unison/fedora.prfunison/graphical~/.unison/graphicalunison/ignores~/.unison/ignoresunison/service~/.unison/serviceunison/sync~/.unison/syncunison/unison@.service~/.config/systemd/user/unison@.servicepueue~/.config/pueuepueue/pueued.service~/.config/systemd/user/pueued.servicefirefox/profiles.ini~/.mozilla/firefox/profiles.inifirefox/qrza8u52.default-release/user.js~/.mozilla/firefox/qrza8u52.default-release/user.jsyazi/init.lua~/.config/yazi/init.luayazi/package.toml~/.config/yazi/package.tomlyazi/keymap.toml~/.config/yazi/keymap.tomlyazi/theme.toml~/.config/yazi/theme.tomlyazi/yazi.toml~/.config/yazi/yazi.tomlgit/gitconfig
~/.config/git/config
git/gitconfig.bugabinga
~/.config/git/.gitconfig.include
gh
~/.config/gh
subversion/config
~/.subversion/config
subversion/diff
~/.local/bin/svn.diff
subversion/merge
~/.local/bin/svn.merge
tools/git-info
~/.local/bin/git-info
cargo/config.toml
~/.cargo/config.toml
bat/config
~/.config/bat/config
nushell/config.nu
~/.config/nushell/config.nu
nushell/env.nu
~/.config/nushell/env.nu
nushell/login.nu
~/.config/nushell/login.nu
nushell/gen-aliases.nu
~/.config/nushell/gen-aliases.nu
nushell/scripts
~/.config/nushell/scripts
nushell/completions
~/.config/nushell/completions
topgrade/topgrade.toml
~/.config/topgrade.toml
topgrade/lnx.toml
~/.config/topgrade.d/lnx.toml
wezterm
~/.config/wezterm
wezterm/wezterm.service
~/.config/systemd/user/wezterm.service
ssh/config
~/.ssh/config
neovim
~/.config/nvim
mini-nvim
~/.config/nvim
environment.d
~/.config/environment.d
fonts
~/.local/share/fonts
fontconfig
~/.config/fontconfig
neovide
~/.config/neovide
zed/keymap.json
~/.config/zed/keymap.json
zed/settings.json
~/.config/zed/settings.json
rbw
~/.config/rbw
broot
~/.config/broot
aerc/binds.conf
~/.config/aerc/binds.conf
aerc/aerc.conf
~/.config/aerc/aerc.conf
unison/common
~/.unison/common
unison/fedora.prf
~/.unison/fedora.prf
unison/graphical
~/.unison/graphical
unison/ignores
~/.unison/ignores
unison/service
~/.unison/service
unison/sync
~/.unison/sync
unison/unison@.service
~/.config/systemd/user/unison@.service
pueue
~/.config/pueue
pueue/pueued.service
~/.config/systemd/user/pueued.service
firefox/profiles.ini
~/.mozilla/firefox/profiles.ini
firefox/qrza8u52.default-release/user.js
~/.mozilla/firefox/qrza8u52.default-release/user.js
yazi/init.lua
~/.config/yazi/init.lua
yazi/package.toml
~/.config/yazi/package.toml
yazi/keymap.toml
~/.config/yazi/keymap.toml
yazi/theme.toml
~/.config/yazi/theme.toml
yazi/yazi.toml
~/.config/yazi/yazi.toml
+116 / −116 text lines
[alias] # `git log` with patches shown with difftastic. dl = -c diff.external=difft log -p --ext-diff # Show the most recent commit with difftastic. ds = -c diff.external=difft show --ext-diff # `git diff` with difftastic. dft = -c diff.external=difft diff ci = commit --all st = status[core] editor = nvim quotepath = false autocrlf = input pager = delta safecrlf = false symlinks = true fscache = true preloadIndex = true[help] format = html[color] interactive = true ui = auto[rebase] autosquash = true[diff] colorMoved = default tool = difftastic[difftool] prompt = false[difftool "meld"] cmd = "meld \"$LOCAL\" \"$REMOTE\""[difftool "difftastic"] cmd = "difft \"$LOCAL\" \"$REMOTE\""[pager] difftool = true[merge] tool = vim[mergetool] keepBackup = false prompt = false[mergetool "meld"] cmd = "meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "[mergetool "vim"] cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "[push] autoSetupRemote = true default = "upstream"[pull] rebase = false[interactive] diffFilter = delta --color-only[delta] side-by-side = true line-numbers = true decorations = true navigate = true syntax-theme = none[interactive] diffFilter = delta --color-only[init] defaultBranch = trunk[commit] verbose = true[help] # try to automatically correct mispelled git commands autocorrect = 1[difftool "difftastic"] # See `man git-difftool` for a description of MERGED, LOCAL and REMOTE. cmd = difft "$MERGED" "$LOCAL" "abcdef1" "100644" "$REMOTE" "abcdef2" "100644"[difftool] # Run the difftool immediately, don't ask 'are you sure' each time. prompt = false[pager] # Use a pager if the difftool output is larger than one screenful, # consistent with the behaviour of `git diff`. difftool = true[diff] # Set difftastic as the default difftool, so we don't need to specify # `-t difftastic` every time. tool = difftastic# In order to have host-specific configuration, I include additional settings here.# On each host a different file might be symlinked into '.gitconfig.include'.[include] path = .gitconfig.include[alias]
# `git log` with patches shown with difftastic.
dl = -c diff.external=difft log -p --ext-diff
# Show the most recent commit with difftastic.
ds = -c diff.external=difft show --ext-diff
# `git diff` with difftastic.
dft = -c diff.external=difft diff
ci = commit --all
st = status
[core]
editor = nvim
quotepath = false
autocrlf = false
pager = delta
safecrlf = false
symlinks = true
fscache = true
preloadIndex = true
[help]
format = html
[color]
interactive = true
ui = auto
[rebase]
autosquash = true
[diff]
colorMoved = default
tool = difftastic
[difftool]
prompt = false
[difftool "meld"]
cmd = "meld \"$LOCAL\" \"$REMOTE\""
[difftool "difftastic"]
cmd = "difft \"$LOCAL\" \"$REMOTE\""
[pager]
difftool = true
[merge]
tool = vim
[mergetool]
keepBackup = false
prompt = false
[mergetool "meld"]
cmd = "meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
[mergetool "vim"]
cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
[push]
autoSetupRemote = true
default = "upstream"
[pull]
rebase = false
[interactive]
diffFilter = delta --color-only
[delta]
side-by-side = true
line-numbers = true
decorations = true
navigate = true
syntax-theme = none
[interactive]
diffFilter = delta --color-only
[init]
defaultBranch = trunk
[commit]
verbose = true
[help]
# try to automatically correct mispelled git commands
autocorrect = 1
[difftool "difftastic"]
# See `man git-difftool` for a description of MERGED, LOCAL and REMOTE.
cmd = difft "$MERGED" "$LOCAL" "abcdef1" "100644" "$REMOTE" "abcdef2" "100644"
[difftool]
# Run the difftool immediately, don't ask 'are you sure' each time.
prompt = false
[pager]
# Use a pager if the difftool output is larger than one screenful,
# consistent with the behaviour of `git diff`.
difftool = true
[diff]
# Set difftastic as the default difftool, so we don't need to specify
# `-t difftastic` every time.
tool = difftastic
# In order to have host-specific configuration, I include additional settings here.
# On each host a different file might be symlinked into '.gitconfig.include'.
[include]
path = .gitconfig.include
+14 / −10 text lines
[user] name = Oliver Krylow email = o.krylow@isp-insoft.de[sendemail] smtpserver = sslout.df.eu smtpuser = o.krylow@isp-insoft.de smtpencryption = ssl smtpserverport = 465 annotate = yes[user]
name = Oliver Krylow
email = o.krylow@isp-insoft.de
[gui]
fontui = -family \"PT Mono\" -size 12 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family Cousine -size 12 -weight normal -slant roman -underline 0 -overstrike 0
[sendemail]
smtpserver = sslout.df.eu
smtpuser = o.krylow@isp-insoft.de
smtpencryption = ssl
smtpserverport = 465
annotate = yes
+30 / −50 text lines
set shell := ["nu", "--commands"]default: @just --list# validate config files# TODO: shell files# TODO: nushell files# TODO: json files# TODO: markdown fileslint: taplo lint javac -Werror -Xlint:all bootstripper.java rm bootstripper.class lychee .# format config files# TODO: java files# TODO: nushell files# TODO: markdown filesfmt: just --fmt --unstable taplo fmt# link dorkfiles into HOMElink: java bootstripper.java# remove links to dorkfiles in HOMEunlink: java bootstripper.java clean# Decrypts all my secrets in tresor, using password manager, if available.decrypt: java bootstripper.java decrypt# install rust user landtools: cd tools;java install.java# typically the initial git remote for the dotfiles repo is https# this command changes the remote to sshssh-remote: git remote rm origin git remote add origin git@github.com:bugabinga/dotfiles.gitimport_winget: winget import X:/winget_installed_apps.jsonset shell := ["nu", "--commands"]
default:
@just --list
# link dorkfiles into HOME
link:
java bootstripper.java
# remove links to dorkfiles in HOME
unlink:
java bootstripper.java clean
# Decrypts all my secrets in tresor, using password manager, if available.
decrypt:
java bootstripper.java decrypt
# install rust user land
tools:
cd tools;java install.java
# typically the initial git remote for the dotfiles repo is https
# this command changes the remote to ssh
ssh-remote:
git remote rm origin
git remote add origin git@github.com:bugabinga/dotfiles.git
# install previously exported winget apps. see topgrade config for exports.
import_winget:
winget import X:/winget_installed_apps.json
new file mode 100644+295 / −0 text lines
-- check out the mini.nvim suite
-- stuff i already miss:
-- - oil --> use MiniFiles for now
-- - text-objects --> TODO: setup and combine with MiniAi
-- - substitute --> cope. learn vim better.
-- - nugu
-- - lua treesitter conceals
-- - save actions
vim.opt.background = 'light'
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.list = true
vim.opt.listchars = 'tab:» ,lead:·,trail:·'
local path_package = vim.fn.stdpath('data') .. '/site'
local mini_path = path_package .. '/pack/deps/start/mini.nvim'
if not vim.loop.fs_stat(mini_path) then
vim.cmd('echo "Installing `mini.nvim`" | redraw')
local clone_cmd = {
'git', 'clone', '--filter=blob:none',
'--branch', 'stable',
'https://github.com/echasnovski/mini.nvim', mini_path
}
vim.fn.system(clone_cmd)
vim.cmd('packadd mini.nvim | helptags ALL')
end
require('mini.basics').setup()
require 'mini.icons' .setup{}
vim.keymap.set('n', '<Esc><Esc>', vim.cmd.nohlsearch )
vim.keymap.set('n', 'U', vim.cmd.redo )
require 'mini.deps'.setup { path = { package = path_package } }
-- TODO lazy loading and stuff
local add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
add {
source = 'neovim/nvim-lspconfig',
depends = { 'williamboman/mason.nvim' },
}
add {
source = 'nvim-treesitter/nvim-treesitter',
checkout = 'master',
monitor = 'main',
hooks = { post_checkout = function() vim.cmd('TSUpdate') end },
}
add { source = 'nushell/tree-sitter-nu' }
add { source = 'RRethy/nvim-treesitter-endwise' }
require('nvim-treesitter.configs').setup({
ensure_installed = { 'lua', 'vimdoc' },
endwise = { enable = true },
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
indent = { enable = true },
})
add {
source = 'nvim-treesitter/nvim-treesitter-textobjects',
}
local spec_treesitter = require('mini.ai').gen_spec.treesitter
require('mini.ai').setup({
custom_textobjects = {
f = spec_treesitter({ a = '@call.outer', i = '@call.inner' }),
m = spec_treesitter({ a = '@function.outer', i = '@function.inner' }),
c = spec_treesitter({ a = '@comment.outer', i = '@comment.inner' }),
a = spec_treesitter({ a = '@parameter.outer', i = '@parameter.inner' }),
o = spec_treesitter({
a = { '@conditional.outer', '@loop.outer' },
i = { '@conditional.inner', '@loop.inner' },
})
}
})
local palette = {
debug = '#ff00ff',
error = '#d6638b',
info = '#c7d0db',
warning = '#d9cbbb',
content_normal = '#2b2b2b',
content_backdrop = '#ededed',
content_accent = '#750b75',
content_minor = '#787878',
content_focus = '#267b8e',
content_unfocus = '#929292',
content_important_global = '#553d98',
content_important_local = '#8169c3',
ui_normal = '#1a1a1a',
ui_backdrop = '#ffffff',
ui_accent = '#5a265a',
ui_minor = '#a3a3a3',
ui_focus = '#53a5b7',
ui_unfocus = '#bdbdbd',
ui_important_global = '#897bb1',
ui_important_local = '#bab1d1',
}
require('mini.base16').setup({
palette = {
base00 = palette.content_backdrop,
base01 = palette.ui_backdrop,
base02 = palette.ui_minor,
base03 = palette.content_important_global,
base04 = palette.ui_normal,
base05 = palette.content_normal,
base06 = palette.content_normal,
base07 = palette.content_backdrop,
base08 = palette.content_normal,
base09 = palette.content_important_local,
base0A = palette.content_normal,
base0B = palette.content_important_local,
base0C = palette.content_important_local,
base0D = palette.content_focus,
base0E = palette.content_minor,
base0F = palette.content_minor,
},
use_cterm = true,
plugins = {
default = false,
['echasnovski/mini.nvim'] = true,
},
})
vim.api.nvim_set_hl(0, 'Whitespace', {
fg = palette.ui_unfocus,
})
require('mini.hipatterns').setup({
highlighters = {
fixme = { pattern = 'FIXME:', group = 'MiniHipatternsFixme' },
hack = { pattern = 'HACK:', group = 'MiniHipatternsHack' },
todo = { pattern = 'TODO:', group = 'MiniHipatternsTodo' },
note = { pattern = 'NOTE:', group = 'MiniHipatternsNote' },
}
})
-- Set `<Leader>` before making any mappings and configuring 'mini.clue'
vim.g.mapleader = ' '
local nmap_leader = function(suffix, rhs, desc)
vim.keymap.set('n', '<Leader>' .. suffix, rhs, { desc = desc })
end
local xmap_leader = function(suffix, rhs, desc)
vim.keymap.set('x', '<Leader>' .. suffix, rhs, { desc = desc })
end
nmap_leader('bd', '<Cmd>lua MiniBufremove.delete()<CR>', 'Delete')
nmap_leader('bw', '<Cmd>lua MiniBufremove.wipeout()<CR>', 'Wipeout')
nmap_leader('lf', '<Cmd>lua vim.lsp.buf.format()<CR>', 'Format')
xmap_leader('lf', '<Cmd>lua vim.lsp.buf.format()<CR>', 'Format')
nmap_leader('lr', '<Cmd>lua vim.lsp.buf.rename()<CR>', 'Rename')
nmap_leader('lR', '<Cmd>lua vim.lsp.buf.references()<CR>', 'References')
local miniclue = require('mini.clue')
miniclue.setup({
triggers = {
-- Leader triggers
{ mode = 'n', keys = '<Leader>' },
{ mode = 'x', keys = '<Leader>' },
-- Built-in completion
{ mode = 'i', keys = '<C-x>' },
-- `g` key
{ mode = 'n', keys = 'g' },
{ mode = 'x', keys = 'g' },
-- Marks
{ mode = 'n', keys = "'" },
{ mode = 'n', keys = '`' },
{ mode = 'x', keys = "'" },
{ mode = 'x', keys = '`' },
-- Registers
{ mode = 'n', keys = '"' },
{ mode = 'x', keys = '"' },
{ mode = 'i', keys = '<C-r>' },
{ mode = 'c', keys = '<C-r>' },
-- Window commands
{ mode = 'n', keys = '<C-w>' },
-- `z` key
{ mode = 'n', keys = 'z' },
{ mode = 'x', keys = 'z' },
},
clues = {
-- Enhance this by adding descriptions for <Leader> mapping groups
{ mode = 'n', keys = '<Leader>b', desc = '+Buffers' },
{ mode = 'n', keys = '<Leader>l', desc = '+LSP' },
{ mode = 'i', keys = '<C-x><C-f>', desc = 'File names' },
{ mode = 'i', keys = '<C-x><C-l>', desc = 'Whole lines' },
{ mode = 'i', keys = '<C-x><C-o>', desc = 'Omni completion' },
{ mode = 'i', keys = '<C-x><C-s>', desc = 'Spelling suggestions' },
{ mode = 'i', keys = '<C-x><C-u>', desc = "With 'completefunc'" },
miniclue.gen_clues.builtin_completion(),
miniclue.gen_clues.g(),
miniclue.gen_clues.marks(),
miniclue.gen_clues.registers(),
miniclue.gen_clues.windows(),
miniclue.gen_clues.z(),
},
})
require 'mini.splitjoin' .setup{
mappings = {
toggle = 'gj',
join = '',
split = '',
},
}
require 'mini.bracketed' .setup()
require 'mini.bufremove' .setup()
require 'mini.completion' .setup {}
require 'mini.diff' .setup{}
require 'mini.git' .setup{}
require 'mini.pick' .setup{}
require 'mini.extra' .setup{}
require 'mini.fuzzy' .setup{}
require 'mini.operators'. setup {}
require 'mini.jump2d' .setup{}
require 'mini.move' .setup{}
require 'mini.notify' .setup{}
require 'mini.pairs' .setup{}
require 'mini.sessions' .setup{}
require 'mini.starter' .setup{}
require 'mini.statusline' .setup{}
require 'mini.tabline' .setup{}
require 'mini.visits' .setup{}
require 'mini.trailspace' .setup{}
require 'mini.cursorword'.setup()
require 'mini.surround'.setup{}
require 'mini.misc'.setup()
MiniMisc.setup_restore_cursor()
require 'mini.files' .setup{
options = {
permanent_delete = false,
},
}
MiniFiles.toggle = function(...)
if not MiniFiles.close() then MiniFiles.open(...) end
end
vim.keymap.set('n', '-', MiniFiles.toggle)
local map_split = function(buf_id, lhs, direction)
local rhs = function()
-- Make new window and set it as target
local cur_target = MiniFiles.get_explorer_state().target_window
local new_target = vim.api.nvim_win_call(cur_target, function()
vim.cmd(direction .. ' split')
return vim.api.nvim_get_current_win()
end)
MiniFiles.set_target_window(new_target)
end
-- Adding `desc` will result into `show_help` entries
local desc = 'Split ' .. direction
vim.keymap.set('n', lhs, rhs, { buffer = buf_id, desc = desc })
end
vim.api.nvim_create_autocmd('User', {
pattern = 'MiniFilesBufferCreate',
callback = function(args)
local buf_id = args.data.buf_id
-- Tweak keys to your liking
map_split(buf_id, '<C-s>', 'belowright horizontal')
map_split(buf_id, '<C-v>', 'belowright vertical')
end,
})
local set_mark = function(id, path, desc)
MiniFiles.set_bookmark(id, path, { desc = desc })
end
vim.api.nvim_create_autocmd('User', {
pattern = 'MiniFilesExplorerOpen',
callback = function()
set_mark('c', vim.fn.stdpath('config'), 'Config') -- path
set_mark('w', vim.fn.getcwd, 'Working directory') -- callable
set_mark('~', '~', 'Home directory')
end,
})
+38 / −39 text lines
fork = trueframe = "none"maximized = truetabs = truetheme = "auto"wsl = true[font]size = 15.0edging = "supixelantialias"hinting = "none"[[font.normal]]family = "Cousine"style = "Regular"[[font.normal]]family = "Symbols Nerd Font Mono"style = "Regular"[[font.bold]]family = "Fantasque Sans Mono"style = "Bold"[[font.bold]]family = "Symbols Nerd Font Mono"style = "Bold"[[font.italic]]family = "Victor Mono"style = "Oblique"[[font.italic]]family = "Symbols Nerd Font Mono"style = "Oblique"[[font.bold_italic]]family = "Victor Mono"style = "Bold Italic"[[font.bold_italic]]family = "Symbols Nerd Font Mono"style = "Bold Italic"fork = true
frame = "none"
maximized = true
tabs = true
theme = "auto"
[font]
size = 15.0
edging = "supixelantialias"
hinting = "none"
[[font.normal]]
family = "Cousine"
style = "Regular"
[[font.normal]]
family = "Symbols Nerd Font Mono"
style = "Regular"
[[font.bold]]
family = "Fantasque Sans Mono"
style = "Bold"
[[font.bold]]
family = "Symbols Nerd Font Mono"
style = "Bold"
[[font.italic]]
family = "Victor Mono"
style = "Oblique"
[[font.italic]]
family = "Symbols Nerd Font Mono"
style = "Oblique"
[[font.bold_italic]]
family = "Victor Mono"
style = "Bold Italic"
[[font.bold_italic]]
family = "Symbols Nerd Font Mono"
style = "Bold Italic"
+14 / −6 text lines
"CopilotChat.nvim": { "branch": "canary", "commit": "6b24e85210008569fcbc889c525cbc7828deafc2" }, "cmd-parser.nvim": { "branch": "master", "commit": "6363b8bddef968c3ec51a38172af44f675f01ef3" }, "in-and-out.nvim": { "branch": "master", "commit": "ab24cafadc3418dffb0c7e9b0621cff60b9ac551" }, "lazy.nvim": { "branch": "main", "commit": "7967abe55752aa90532e6bb4bd4663fe27a264cb" }, "lazy.nvim": { "branch": "main", "commit": "56ead98e05bb37a4ec28930a54d836d033cf00f2" }, "nvim-highlight-colors": { "branch": "main", "commit": "a411550ef85cae467b889ba7d1a96bd78332d90e" }, "nvim-luapad": { "branch": "master", "commit": "176686eb616a5ada5dfc748f2b5109194bbe8a71" }, "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" }, "nvim-rulebook": { "branch": "main", "commit": "bc5e3874a9870709ec91152f9efce6dad49ca862" }, "nvim-rulebook": { "branch": "main", "commit": "ddaa7de42e1863845c1c7dda040f39a76b14d125" }, "nvim-treesitter": { "branch": "master", "commit": "13c7caf8a602488b37cdefe8543c4cfdd5947d9d" }, "nvim-treesitter": { "branch": "master", "commit": "fcd2a5fea91deac818f26a6412a624798af45033" }, "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "3e450cd85243da99dc23ebbf14f9c70e9a0c26a4" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" }, "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" }, "nvim-web-devicons": { "branch": "master", "commit": "f09be61d05bebcba85bb47be1931322d51b95644" }, "range-highlight.nvim": { "branch": "master", "commit": "8b5e8ccb3460b2c3675f4639b9f54e64eaab36d9" }, "symbol-usage.nvim": { "branch": "main", "commit": "0f9b3da014b7e41559b643e7461fcabb2a7dc83a" }, "telescope-frecency.nvim": { "branch": "master", "commit": "8622ef42f73cf0eb76bbe049220a812ffe32354d" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" }, "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" }, "telescope-undo.nvim": { "branch": "main", "commit": "2971cc9f193ec09e0c5de3563f99cbea16b63f10" }, "telescope-zoxide": { "branch": "main", "commit": "54bfe630bad08dc9891ec78c7cf8db38dd725c97" }, "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "tree-sitter-nu": { "branch": "main", "commit": "86aabeeaf4d3fc544d132904ef9981a888314ec0" },+1 / −0 text lines
+43 / −43 text lines
require 'bugabinga.health'.add_dependency{ name = 'CMake', name_of_executable = 'cmake' } { name_of_executable = 'make' } { name_of_executable = 'zig' } { name = 'TreeSitter CLI', name_of_executable = 'tree-sitter' } { name_of_executable = 'tar' }return { 'nvim-treesitter/nvim-treesitter', branch = 'master', lazy = false, build = function () require 'nvim-treesitter.install'.update { with_sync = true } end, dependencies = { -- FIXME: move nvim-treesitter modules out into normal config to prepare for main branch 'RRethy/nvim-treesitter-endwise', 'nushell/tree-sitter-nu', }, config = function () local install = require 'nvim-treesitter.install' local configs = require 'nvim-treesitter.configs' install.prefer_git = false install.compilers = { 'zig cc', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' } ---@diagnostic disable-next-line: missing-fields configs.setup { sync_install = false, ignore_install = { 'oil' }, auto_install = true, endwise = { enable = true }, highlight = { enable = true, additional_vim_regex_highlighting = false, }, indent = { enable = true }, } end,}require 'bugabinga.health'.add_dependency
{ name = 'CMake', name_of_executable = 'cmake' }
{ name_of_executable = 'make' }
{ name_of_executable = 'zig' }
{ name = 'TreeSitter CLI', name_of_executable = 'tree-sitter' }
{ name_of_executable = 'tar' }
return {
'nvim-treesitter/nvim-treesitter',
branch = 'master',
lazy = false,
build = function ()
require 'nvim-treesitter.install'.update { with_sync = true }
end,
dependencies = {
-- FIXME: move nvim-treesitter modules out into normal config to prepare for main branch
'RRethy/nvim-treesitter-endwise',
'nushell/tree-sitter-nu',
},
config = function ()
local install = require 'nvim-treesitter.install'
local configs = require 'nvim-treesitter.configs'
install.prefer_git = false
-- install.compilers = { 'zig cc', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
---@diagnostic disable-next-line: missing-fields
configs.setup {
sync_install = false,
ignore_install = { 'oil' },
auto_install = true,
endwise = { enable = true },
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
indent = { enable = true },
}
end,
}
+0 / −2416 text lines
module completions { # Jujutsu (An experimental VCS) export extern jj [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] # Abandon a revision export extern "jj abandon" [ ...revisions: string # The revision(s) to abandon --summary(-s) # Do not print every abandoned commit on a separate line -r # Ignored (but lets you pass `-r` for consistency with other commands) --restore-descendants # Do not modify the content of the children of the abandoned commits --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Apply the reverse of a revision on top of another revision export extern "jj backout" [ --revisions(-r): string # The revision(s) to apply the reverse of --destination(-d): string # The revision to apply the reverse changes on top of --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Manage bookmarks export extern "jj bookmark" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new bookmark export extern "jj bookmark create" [ --revision(-r): string # The bookmark's target revision --to: string # The bookmark's target revision ...names: string # The bookmarks to create --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Delete an existing bookmark and propagate the deletion to remotes on the next push export extern "jj bookmark delete" [ ...names: string # The bookmarks to delete --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Forget everything about a bookmark, including its local and remote targets export extern "jj bookmark forget" [ ...names: string # The bookmarks to forget --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List bookmarks and their targets export extern "jj bookmark list" [ --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks --remote: string # Show all tracking and non-tracking remote bookmarks belonging to this remote --tracked(-t) # Show remote tracked bookmarks only. Omits local Git-tracking bookmarks by default --conflicted(-c) # Show conflicted bookmarks only ...names: string # Show bookmarks whose local name matches --revisions(-r): string # Show bookmarks whose local targets are in the given revisions --template(-T): string # Render each bookmark using the given template --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Move existing bookmarks to target revision export extern "jj bookmark move" [ --from: string # Move bookmarks from the given revisions --to: string # Move bookmarks to this revision --allow-backwards(-B) # Allow moving bookmarks backwards or sideways ...names: string # Move bookmarks matching the given name patterns --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Rename `old` bookmark name to `new` bookmark name export extern "jj bookmark rename" [ old: string # The old name of the bookmark new: string # The new name of the bookmark --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create or update a bookmark to point to a certain commit export extern "jj bookmark set" [ --revision(-r): string # The bookmark's target revision --to: string # The bookmark's target revision --allow-backwards(-B) # Allow moving the bookmark backwards or sideways ...names: string # The bookmarks to update --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Start tracking given remote bookmarks export extern "jj bookmark track" [ ...names: string # Remote bookmarks to track --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Stop tracking given remote bookmarks export extern "jj bookmark untrack" [ ...names: string # Remote bookmarks to untrack --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Manage bookmarks export extern "jj branch" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new bookmark export extern "jj branch create" [ --revision(-r): string # The bookmark's target revision --to: string # The bookmark's target revision ...names: string # The bookmarks to create --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Delete an existing bookmark and propagate the deletion to remotes on the next push export extern "jj branch delete" [ ...names: string # The bookmarks to delete --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Forget everything about a bookmark, including its local and remote targets export extern "jj branch forget" [ ...names: string # The bookmarks to forget --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List bookmarks and their targets export extern "jj branch list" [ --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks --remote: string # Show all tracking and non-tracking remote bookmarks belonging to this remote --tracked(-t) # Show remote tracked bookmarks only. Omits local Git-tracking bookmarks by default --conflicted(-c) # Show conflicted bookmarks only ...names: string # Show bookmarks whose local name matches --revisions(-r): string # Show bookmarks whose local targets are in the given revisions --template(-T): string # Render each bookmark using the given template --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Move existing bookmarks to target revision export extern "jj branch move" [ --from: string # Move bookmarks from the given revisions --to: string # Move bookmarks to this revision --allow-backwards(-B) # Allow moving bookmarks backwards or sideways ...names: string # Move bookmarks matching the given name patterns --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Rename `old` bookmark name to `new` bookmark name export extern "jj branch rename" [ old: string # The old name of the bookmark new: string # The new name of the bookmark --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create or update a bookmark to point to a certain commit export extern "jj branch set" [ --revision(-r): string # The bookmark's target revision --to: string # The bookmark's target revision --allow-backwards(-B) # Allow moving the bookmark backwards or sideways ...names: string # The bookmarks to update --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Start tracking given remote bookmarks export extern "jj branch track" [ ...names: string # Remote bookmarks to track --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Stop tracking given remote bookmarks export extern "jj branch untrack" [ ...names: string # Remote bookmarks to untrack --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Print contents of files in a revision export extern "jj cat" [ --revision(-r): string # The revision to get the file contents from ...paths: string # Paths to print --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new, empty change and edit it in the working copy (DEPRECATED, use `jj new`) export extern "jj checkout" [ revision: string # The revision to update to -r # Ignored (but lets you pass `-r` for consistency with other commands) --message(-m): string # The change description to use --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj chmod mode" [] { [ "n" "x" ] } # Sets or removes the executable bit for paths in the repo export extern "jj chmod" [ mode: string@"nu-complete jj chmod mode" --revision(-r): string # The revision to update ...paths: string # Paths to change the executable bit for --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Update the description and create a new change on top export extern "jj commit" [ --interactive(-i) # Interactively choose which changes to include in the first commit --tool: string # Specify diff editor to be used (implies --interactive) --message(-m): string # The change description to use (don't open editor) ...paths: string # Put these paths in the first commit --reset-author # Reset the author to the configured user --author: string # Set author to the provided string --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Manage config options export extern "jj config" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Start an editor on a jj config file export extern "jj config edit" [ --user # Target the user-level config --repo # Target the repo-level config --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Get the value of a given config option. export extern "jj config get" [ name: string --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List variables set in config file, along with their values export extern "jj config list" [ name?: string # An optional name of a specific config option to look up --include-defaults # Whether to explicitly include built-in default values in the list --include-overridden # Allow printing overridden values --user # Target the user-level config --repo # Target the repo-level config --template(-T): string # Render each variable using the given template --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Print the path to the config file export extern "jj config path" [ --user # Target the user-level config --repo # Target the repo-level config --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Update config file to set the given option to a given value export extern "jj config set" [ name: string value: string --user # Target the user-level config --repo # Target the repo-level config --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Update config file to unset the given option export extern "jj config unset" [ name: string --user # Target the user-level config --repo # Target the repo-level config --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Low-level commands not intended for users export extern "jj debug" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Rebuild commit index export extern "jj debug copy-detection" [ revision?: string # Show changes in this revision, compared to its parent(s) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Parse fileset expression export extern "jj debug fileset" [ path: string --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show commit index stats export extern "jj debug index" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show information about the local working copy state export extern "jj debug local-working-copy" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj debug operation display" [] { [ "operation" "id" "view" "all" ] } # Show information about an operation and its view export extern "jj debug operation" [ operation?: string --display: string@"nu-complete jj debug operation display" --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Rebuild commit index export extern "jj debug reindex" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Evaluate revset to full commit IDs export extern "jj debug revset" [ revision: string --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Trigger a snapshot in the op log export extern "jj debug snapshot" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Parse a template export extern "jj debug template" [ template: string --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List the recursive entries of a tree export extern "jj debug tree" [ --revision(-r): string --id: string --dir: string ...paths: string --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] export extern "jj debug watchman" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Check whether `watchman` is enabled and whether it's correctly installed export extern "jj debug watchman status" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] export extern "jj debug watchman query-clock" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] export extern "jj debug watchman query-changed-files" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] export extern "jj debug watchman reset-clock" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show information about the working copy state export extern "jj debug working-copy" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Update the change description or other metadata export extern "jj describe" [ ...revisions: string # The revision(s) whose description to edit -r # Ignored (but lets you pass `-r` for consistency with other commands) --message(-m): string # The change description to use (don't open editor) --stdin # Read the change description from stdin --no-edit # Don't open an editor --reset-author # Reset the author to the configured user --author: string # Set author to the provided string --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Compare file contents between two revisions export extern "jj diff" [ --revision(-r): string # Show changes in this revision, compared to its parent(s) --from: string # Show changes from this revision --to: string # Show changes to this revision ...paths: string # Restrict the diff to these paths --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space(-w) # Ignore whitespace when comparing lines --ignore-space-change(-b) # Ignore changes in amount of whitespace when comparing lines --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Touch up the content changes in a revision with a diff editor export extern "jj diffedit" [ --revision(-r): string # The revision to touch up --from: string # Show changes from this revision --to: string # Edit changes in this revision --tool: string # Specify diff editor to be used --restore-descendants # Preserve the content (not the diff) when rebasing descendants --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new change with the same content as an existing one export extern "jj duplicate" [ ...revisions: string # The revision(s) to duplicate -r # Ignored (but lets you pass `-r` for consistency with other commands) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Sets the specified revision as the working-copy revision export extern "jj edit" [ revision: string # The commit to edit -r # Ignored (but lets you pass `-r` for consistency with other commands) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show how a change has evolved over time export extern "jj evolog" [ --revision(-r): string --limit(-n): string # Limit number of revisions to show -l: string --no-graph # Don't show the graph, show a flat list of revisions --template(-T): string # Render each revision using the given template --patch(-p) # Show patch compared to the previous version of this change --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # File operations export extern "jj file" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show the source change for each line of the target file export extern "jj file annotate" [ path: string # the file to annotate --revision(-r): string # an optional revision to start at --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj file chmod mode" [] { [ "n" "x" ] } # Sets or removes the executable bit for paths in the repo export extern "jj file chmod" [ mode: string@"nu-complete jj file chmod mode" --revision(-r): string # The revision to update ...paths: string # Paths to change the executable bit for --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List files in a revision export extern "jj file list" [ --revision(-r): string # The revision to list files in ...paths: string # Only list files matching these prefixes (instead of all files) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Print contents of files in a revision export extern "jj file show" [ --revision(-r): string # The revision to get the file contents from ...paths: string # Paths to print --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Start tracking specified paths in the working copy export extern "jj file track" [ ...paths: string # Paths to track --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Stop tracking specified paths in the working copy export extern "jj file untrack" [ ...paths: string # Paths to untrack. They must already be ignored --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List files in a revision (DEPRECATED use `jj file list`) export extern "jj files" [ --revision(-r): string # The revision to list files in ...paths: string # Only list files matching these prefixes (instead of all files) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Update files with formatting fixes or other changes export extern "jj fix" [ --source(-s): string # Fix files in the specified revision(s) and their descendants. If no revisions are specified, this defaults to the `revsets.fix` setting, or `reachable(@, mutable())` if it is not set ...paths: string # Fix only these paths --include-unchanged-files # Fix unchanged files in addition to changed ones. If no paths are specified, all files in the repo will be fixed --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Commands for working with Git remotes and the underlying Git repo export extern "jj git" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new repo backed by a clone of a Git repo export extern "jj git clone" [ source: string # URL or path of the Git repo to clone destination?: string # Specifies the target directory for the Jujutsu repository clone. If not provided, defaults to a directory named after the last component of the source URL. The full directory path will be created if it doesn't exist --remote: string # Name of the newly created remote --colocate # Whether or not to colocate the Jujutsu repo with the git repo --depth: string # Create a shallow clone of the given depth --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Update the underlying Git repo with changes made in the repo export extern "jj git export" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Fetch from a Git remote export extern "jj git fetch" [ --branch(-b): string # Fetch only some of the branches --remote: string # The remote to fetch from (only named remotes are supported, can be repeated) --all-remotes # Fetch from all remotes --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Update repo with changes made in the underlying Git repo export extern "jj git import" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new Git backed repo export extern "jj git init" [ destination?: string # The destination directory where the `jj` repo will be created. If the directory does not exist, it will be created. If no directory is given, the current directory is used --colocate # Specifies that the `jj` repo should also be a valid `git` repo, allowing the use of both `jj` and `git` commands in the same directory --git-repo: string # Specifies a path to an **existing** git repository to be used as the backing git repo for the newly created `jj` repo --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Push to a Git remote export extern "jj git push" [ --remote: string # The remote to push to (only named remotes are supported) --bookmark(-b): string # Push only this bookmark, or bookmarks matching a pattern (can be repeated) --all # Push all bookmarks (including deleted bookmarks) --tracked # Push all tracked bookmarks (including deleted bookmarks) --deleted # Push all deleted bookmarks --allow-empty-description # Allow pushing commits with empty descriptions --allow-private # Allow pushing commits that are private --revisions(-r): string # Push bookmarks pointing to these commits (can be repeated) --change(-c): string # Push this commit by creating a bookmark based on its change ID (can be repeated) --dry-run # Only display what will change on the remote --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Manage Git remotes export extern "jj git remote" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Add a Git remote export extern "jj git remote add" [ remote: string # The remote's name url: string # The remote's URL --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List Git remotes export extern "jj git remote list" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Remove a Git remote and forget its bookmarks export extern "jj git remote remove" [ remote: string # The remote's name --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Rename a Git remote export extern "jj git remote rename" [ old: string # The name of an existing remote new: string # The desired name for `old` --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Set the URL of a Git remote export extern "jj git remote set-url" [ remote: string # The remote's name url: string # The desired url for `remote` --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # FOR INTERNAL USE ONLY Interact with git submodules export extern "jj git submodule" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Print the relevant contents from .gitmodules. For debugging purposes only export extern "jj git submodule print-gitmodules" [ --revisions(-r): string # Read .gitmodules from the given revision --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj help keyword" [] { [ "revsets" "tutorial" ] } # Print this message or the help of the given subcommand(s) export extern "jj help" [ ...command: string # Print help for the subcommand(s) --keyword(-k): string@"nu-complete jj help keyword" # Show help for keywords instead of commands --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new repo in the given directory export extern "jj init" [ destination?: string # The destination directory --git # DEPRECATED: Use `jj git init` Use the Git backend, creating a jj repo backed by a Git repo --git-repo: string # DEPRECATED: Use `jj git init` Path to a git repo the jj repo will be backed by --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Compare the changes of two commits export extern "jj interdiff" [ --from: string # Show changes from this revision --to: string # Show changes to this revision ...paths: string # Restrict the diff to these paths --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space(-w) # Ignore whitespace when comparing lines --ignore-space-change(-b) # Ignore changes in amount of whitespace when comparing lines --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show revision history export extern "jj log" [ --revisions(-r): string # Which revisions to show ...paths: string # Show revisions modifying the given paths --reversed # Show revisions in the opposite order (older revisions first) --limit(-n): string # Limit number of revisions to show -l: string --no-graph # Don't show the graph, show a flat list of revisions --template(-T): string # Render each revision using the given template --patch(-p) # Show patch --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Merge work from multiple bookmarks (DEPRECATED, use `jj new`) export extern "jj merge" [ ...revisions: string # Parent(s) of the new change -d # Ignored (but lets you pass `-d`/`-r` for consistency with other commands) --message(-m): string # The change description to use --no-edit # Do not edit the newly created change --edit # No-op flag to pair with --no-edit --insert-after(-A): string # Insert the new change after the given commit(s) --after: string # Insert the new change after the given commit(s) --insert-before(-B): string # Insert the new change before the given commit(s) --before: string # Insert the new change before the given commit(s) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Move changes from one revision into another (DEPRECATED, use `jj squash`) export extern "jj move" [ --from(-f): string # Move part of this change into the destination --to(-t): string # Move part of the source into this change --interactive(-i) # Interactively choose which parts to move --tool: string # Specify diff editor to be used (implies --interactive) ...paths: string # Move only changes to these paths (instead of all paths) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new, empty change and (by default) edit it in the working copy export extern "jj new" [ ...revisions: string # Parent(s) of the new change -d # Ignored (but lets you pass `-d`/`-r` for consistency with other commands) --message(-m): string # The change description to use --no-edit # Do not edit the newly created change --edit # No-op flag to pair with --no-edit --insert-after(-A): string # Insert the new change after the given commit(s) --after: string # Insert the new change after the given commit(s) --insert-before(-B): string # Insert the new change before the given commit(s) --before: string # Insert the new change before the given commit(s) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Move the working-copy commit to the child revision export extern "jj next" [ offset?: string # How many revisions to move forward. Advances to the next child by default --edit(-e) # Instead of creating a new working-copy commit on top of the target commit (like `jj new`), edit the target commit directly (like `jj edit`) --no-edit(-n) # The inverse of `--edit` --conflict # Jump to the next conflicted descendant --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Commands for working with the operation log export extern "jj operation" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Abandon operation history export extern "jj operation abandon" [ operation: string # The operation or operation range to abandon --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Compare changes to the repository between two operations export extern "jj operation diff" [ --operation: string # Show repository changes in this operation, compared to its parent --op: string # Show repository changes in this operation, compared to its parent --from: string # Show repository changes from this operation --to: string # Show repository changes to this operation --no-graph # Don't show the graph, show a flat list of modified changes --patch(-p) # Show patch of modifications to changes --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show the operation log export extern "jj operation log" [ --limit(-n): string # Limit number of operations to show -l: string --no-graph # Don't show the graph, show a flat list of operations --template(-T): string # Render each operation using the given template --op-diff # Show changes to the repository at each operation --patch(-p) # Show patch of modifications to changes (implies --op-diff) --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj operation restore what" [] { [ "repo" "remote-tracking" ] } # Create a new operation that restores the repo to an earlier state export extern "jj operation restore" [ operation: string # The operation to restore to --what: string@"nu-complete jj operation restore what" # What portions of the local state to restore (can be repeated) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show changes to the repository in an operation export extern "jj operation show" [ operation?: string # Show repository changes in this operation, compared to its parent(s) --no-graph # Don't show the graph, show a flat list of modified changes --patch(-p) # Show patch of modifications to changes --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj operation undo what" [] { [ "repo" "remote-tracking" ] } # Create a new operation that undoes an earlier operation export extern "jj operation undo" [ operation?: string # The operation to undo --what: string@"nu-complete jj operation undo what" # What portions of the local state to restore (can be repeated) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Parallelize revisions by making them siblings export extern "jj parallelize" [ ...revisions: string # Revisions to parallelize --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Change the working copy revision relative to the parent revision export extern "jj prev" [ offset?: string # How many revisions to move backward. Moves to the parent by default --edit(-e) # Edit the parent directly, instead of moving the working-copy commit --no-edit(-n) # The inverse of `--edit` --conflict # Jump to the previous conflicted ancestor --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Move revisions to different parent(s) export extern "jj rebase" [ --branch(-b): string # Rebase the whole branch relative to destination's ancestors (can be repeated) --source(-s): string # Rebase specified revision(s) together with their trees of descendants (can be repeated) --revisions(-r): string # Rebase the given revisions, rebasing descendants onto this revision's parent(s) --destination(-d): string # The revision(s) to rebase onto (can be repeated to create a merge commit) --insert-after(-A): string # The revision(s) to insert after (can be repeated to create a merge commit) --after: string # The revision(s) to insert after (can be repeated to create a merge commit) --insert-before(-B): string # The revision(s) to insert before (can be repeated to create a merge commit) --before: string # The revision(s) to insert before (can be repeated to create a merge commit) --skip-empty # Deprecated. Use --skip-emptied instead --skip-emptied # If true, when rebasing would produce an empty commit, the commit is abandoned. It will not be abandoned if it was already empty before the rebase. Will never skip merge commits with multiple non-empty parents --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Resolve a conflicted file with an external merge tool export extern "jj resolve" [ --revision(-r): string --list(-l) # Instead of resolving one conflict, list all the conflicts --tool: string # Specify 3-way merge tool to be used ...paths: string # Restrict to these paths when searching for a conflict to resolve. We will attempt to resolve the first conflict we can find. You can use the `--list` argument to find paths to use here --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Restore paths from another revision export extern "jj restore" [ ...paths: string # Restore only these paths (instead of all paths) --from: string # Revision to restore from (source) --to: string # Revision to restore into (destination) --changes-in(-c): string # Undo the changes in a revision as compared to the merge of its parents --revision(-r): string # Prints an error. DO NOT USE --restore-descendants # Preserve the content (not the diff) when rebasing descendants --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # A dummy command that accepts any arguments export extern "jj revert" [ ..._args: string --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show the current workspace root directory export extern "jj root" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # (**Stub**, does not work yet) Run a command across a set of revisions. export extern "jj run" [ shell_command: string # The command to run across all selected revisions --revisions(-r): string # The revisions to change -x # A no-op option to match the interface of `git rebase -x` --jobs(-j): string # How many processes should run in parallel, uses by default all cores --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show commit description and changes in a revision export extern "jj show" [ revision?: string # Show changes in this revision, compared to its parent(s) -r # Ignored (but lets you pass `-r` for consistency with other commands) --template(-T): string # Render a revision using the given template --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Simplify parent edges for the specified revision(s) export extern "jj simplify-parents" [ --source(-s): string # Simplify specified revision(s) together with their trees of descendants (can be repeated) --revisions(-r): string # Simplify specified revision(s) (can be repeated) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Manage which paths from the working-copy commit are present in the working copy export extern "jj sparse" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Start an editor to update the patterns that are present in the working copy export extern "jj sparse edit" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List the patterns that are currently present in the working copy export extern "jj sparse list" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Reset the patterns to include all files in the working copy export extern "jj sparse reset" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Update the patterns that are present in the working copy export extern "jj sparse set" [ --add: string # Patterns to add to the working copy --remove: string # Patterns to remove from the working copy --clear # Include no files in the working copy (combine with --add) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Split a revision in two export extern "jj split" [ --interactive(-i) # Interactively choose which parts to split. This is the default if no paths are provided --tool: string # Specify diff editor to be used (implies --interactive) --revision(-r): string # The revision to split --parallel(-p) # Split the revision into two parallel revisions instead of a parent and child ...paths: string # Put these paths in the first commit --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Move changes from a revision into another revision export extern "jj squash" [ --revision(-r): string # Revision to squash into its parent (default: @) --from(-f): string # Revision(s) to squash from (default: @) --into(-t): string # Revision to squash into (default: @) --to: string # Revision to squash into (default: @) --message(-m): string # The description to use for squashed revision (don't open editor) --use-destination-message(-u) # Use the description of the destination revision and discard the description(s) of the source revision(s) --interactive(-i) # Interactively choose which parts to squash --tool: string # Specify diff editor to be used (implies --interactive) ...paths: string # Move only changes to these paths (instead of all paths) --keep-emptied(-k) # The source revision will not be abandoned --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show high-level repo status export extern "jj status" [ ...paths: string # Restrict the status display to these paths --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Manage tags export extern "jj tag" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List tags export extern "jj tag list" [ ...names: string # Show tags whose local name matches --template(-T): string # Render each tag using the given template --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Infrequently used commands such as for generating shell completions export extern "jj util" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj util completion shell" [] { [ "bash" "elvish" "fish" "nushell" "power-shell" "zsh" ] } # Print a command-line-completion script export extern "jj util completion" [ shell?: string@"nu-complete jj util completion shell" --bash # Deprecated. Use the SHELL positional argument instead --fish # Deprecated. Use the SHELL positional argument instead --zsh # Deprecated. Use the SHELL positional argument instead --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Print the JSON schema for the jj TOML config format export extern "jj util config-schema" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Run backend-dependent garbage collection export extern "jj util gc" [ --expire: string # Time threshold --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Print a ROFF (manpage) export extern "jj util mangen" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Print the CLI help for all subcommands in Markdown export extern "jj util markdown-help" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj undo what" [] { [ "repo" "remote-tracking" ] } # Undo an operation (shortcut for `jj op undo`) export extern "jj undo" [ operation?: string # The operation to undo --what: string@"nu-complete jj undo what" # What portions of the local state to restore (can be repeated) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Move changes from a revision's parent into the revision export extern "jj unsquash" [ --revision(-r): string --interactive(-i) # Interactively choose which parts to unsquash --tool: string # Specify diff editor to be used (implies --interactive) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Stop tracking specified paths in the working copy export extern "jj untrack" [ ...paths: string # Paths to untrack. They must already be ignored --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Display version information export extern "jj version" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Commands for working with workspaces export extern "jj workspace" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj workspace add sparse_patterns" [] { [ "copy" "full" "empty" ] } # Add a workspace export extern "jj workspace add" [ destination: string # Where to create the new workspace --name: string # A name for the workspace --revision(-r): string # A list of parent revisions for the working-copy commit of the newly created workspace. You may specify nothing, or any number of parents --sparse-patterns: string@"nu-complete jj workspace add sparse_patterns" # How to handle sparse patterns when creating a new workspace --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Stop tracking a workspace's working-copy commit in the repo export extern "jj workspace forget" [ ...workspaces: string # Names of the workspaces to forget. By default, forgets only the current workspace --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # List workspaces export extern "jj workspace list" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Renames the current workspace export extern "jj workspace rename" [ new_workspace_name: string # The name of the workspace to update to --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Show the current workspace root directory export extern "jj workspace root" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Update a workspace that has become stale export extern "jj workspace update-stale" [ --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ]}export use completions *+0 / −339 text lines
module completions { def "nu-complete pueue color" [] { [ "auto" "never" "always" ] } # Interact with the Pueue daemon export extern pueue [ --verbose(-v) # Verbose mode (-v, -vv, -vvv) --color: string@"nu-complete pueue color" # Colorize the output; auto enables color output when connected to a tty --config(-c): string # If provided, Pueue only uses this config file. This path can also be set via the "PUEUE_CONFIG_PATH" environment variable. The commandline option overwrites the environment variable! --profile(-p): string # The name of the profile that should be loaded from your config file --help(-h) # Print help --version(-V) # Print version ] # Enqueue a task for execution. There're many different options when scheduling a task. Check the individual option help texts for more information. Furthermore, please remember that scheduled commands are executed via your system shell. This means that the command needs proper shell escaping. The safest way to preserve shell escaping is to surround your command with quotes, for example: pueue add 'ls $HOME && echo "Some string"' export extern "pueue add" [ ...command: string # The command to be added --working-directory(-w): string # Specify current working directory --escape(-e) # Escape any special shell characters (" ", "&", "!", etc.). Beware: This implicitly disables nearly all shell specific syntax ("&&", "&>") --immediate(-i) # Immediately start the task --stashed(-s) # Create the task in Stashed state. Useful to avoid immediate execution if the queue is empty --delay(-d): string # Prevents the task from being enqueued until 'delay' elapses. See "enqueue" for accepted formats --group(-g): string # Assign the task to a group. Groups kind of act as separate queues. I.e. all groups run in parallel and you can specify the amount of parallel tasks for each group. If no group is specified, the default group will be used --after(-a): string # Start the task once all specified tasks have successfully finished. As soon as one of the dependencies fails, this task will fail as well --priority(-o): string # Start this task with a higher priority. The higher the number, the faster it will be processed --label(-l): string # Add some information for yourself. This string will be shown in the "status" table. There's no additional logic connected to it --print-task-id(-p) # Only return the task id instead of a text. This is useful when working with dependencies --help(-h) # Print help ] # Remove tasks from the list. Running or paused tasks need to be killed first export extern "pueue remove" [ ...task_ids: string # The task ids to be removed --help(-h) # Print help ] # Switches the queue position of two commands. Only works on queued and stashed commands export extern "pueue switch" [ task_id_1: string # The first task id task_id_2: string # The second task id --help(-h) # Print help ] # Stashed tasks won't be automatically started. You have to enqueue them or start them by hand export extern "pueue stash" [ ...task_ids: string # Stash these specific tasks --help(-h) # Print help ] # Enqueue stashed tasks. They'll be handled normally afterwards export extern "pueue enqueue" [ ...task_ids: string # Enqueue these specific tasks --delay(-d): string # Delay enqueuing these tasks until 'delay' elapses. See DELAY FORMAT below --help(-h) # Print help ] # Resume operation of specific tasks or groups of tasks. By default, this resumes the default group and all its tasks. Can also be used force-start specific tasks. export extern "pueue start" [ ...task_ids: string # Start these specific tasks. Paused tasks will resumed. Queued or Stashed tasks will be force-started --group(-g): string # Resume a specific group and all paused tasks in it. The group will be set to running and its paused tasks will be resumed --all(-a) # Resume all groups! All groups will be set to running and paused tasks will be resumed --children(-c) # Deprecated: this switch no longer has any effect --help(-h) # Print help ] # Restart failed or successful task(s). By default, identical tasks will be created and enqueued, but it's possible to restart in-place. You can also edit a few properties, such as the path and the command, before restarting. export extern "pueue restart" [ ...task_ids: string # Restart these specific tasks --all-failed(-a) # Restart all failed tasks across all groups. Nice to use in combination with `-i/--in-place` --failed-in-group(-g): string # Like `--all-failed`, but only restart tasks failed tasks of a specific group. The group will be set to running and its paused tasks will be resumed --start-immediately(-k) # Immediately start the tasks, no matter how many open slots there are. This will ignore any dependencies tasks may have --stashed(-s) # Set the restarted task to a "Stashed" state. Useful to avoid immediate execution --in-place(-i) # Restart the task by reusing the already existing tasks. This will overwrite any previous logs of the restarted tasks --not-in-place # Restart the task by creating a new identical tasks. Only applies, if you have the restart_in_place configuration set to true --edit(-e) # Edit the tasks' commands before restarting --edit-path(-p) # Edit the tasks' paths before restarting --edit-label(-l) # Edit the tasks' labels before restarting --edit-priority(-o) # Edit the tasks' priorities before restarting --help(-h) # Print help ] # Either pause running tasks or specific groups of tasks. By default, pauses the default group and all its tasks. A paused queue (group) won't start any new tasks. export extern "pueue pause" [ ...task_ids: string # Pause these specific tasks. Does not affect the default group, groups or any other tasks --group(-g): string # Pause a specific group --all(-a) # Pause all groups! --wait(-w) # Only pause the specified group and let already running tasks finish by themselves --children(-c) # Deprecated: this switch no longer has any effect --help(-h) # Print help ] # Kill specific running tasks or whole task groups.. Kills all tasks of the default group when no ids or a specific group are provided. export extern "pueue kill" [ ...task_ids: string # Kill these specific tasks --group(-g): string # Kill all running tasks in a group. This also pauses the group --all(-a) # Kill all running tasks across ALL groups. This also pauses all groups --children(-c) # Deprecated: this switch no longer has any effect --signal(-s): string # Send a UNIX signal instead of simply killing the process. DISCLAIMER: This bypasses Pueue's process handling logic! You might enter weird invalid states, use at your own descretion --help(-h) # Print help ] # Send something to a task. Useful for sending confirmations such as 'y\n' export extern "pueue send" [ task_id: string # The id of the task input: string # The input that should be sent to the process --help(-h) # Print help ] # Edit the command, path, label, or priority of a stashed or queued task. By default only the command is edited. Multiple properties can be added in one go. export extern "pueue edit" [ task_id: string # The task's id --command(-c) # Edit the task's command --path(-p) # Edit the task's path --label(-l) # Edit the task's label --priority(-o) # Edit the task's priority --help(-h) # Print help ] # Use this to add or remove groups. By default, this will simply display all known groups. export extern "pueue group" [ --json(-j) # Print the list of groups as json --help(-h) # Print help ] # Add a group by name export extern "pueue group add" [ name: string --parallel(-p): string # Set the amount of parallel tasks this group can have. Setting this to 0 means an unlimited amount of parallel tasks --help(-h) # Print help ] # Remove a group by name. This will move all tasks in this group to the default group! export extern "pueue group remove" [ name: string --help(-h) # Print help ] # Print this message or the help of the given subcommand(s) export extern "pueue group help" [ ] # Add a group by name export extern "pueue group help add" [ ] # Remove a group by name. This will move all tasks in this group to the default group! export extern "pueue group help remove" [ ] # Print this message or the help of the given subcommand(s) export extern "pueue group help help" [ ] # Display the current status of all tasks export extern "pueue status" [ ...query: string # Users can specify a custom query to filter for specific values, order by a column or limit the amount of tasks listed. Use `--help` for the full syntax definition --json(-j) # Print the current state as json to stdout. This does not include the output of tasks. Use `log -j` if you want everything --group(-g): string # Only show tasks of a specific group --help(-h) # Print help (see more with '--help') ] # Accept a list or map of JSON pueue tasks via stdin and display it just like "pueue status". A simple example might look like this: pueue status --json | jq -c '.tasks' | pueue format-status export extern "pueue format-status" [ --group(-g): string # Only show tasks of a specific group --help(-h) # Print help ] # Display the log output of finished tasks. Only the last few lines will be shown by default. If you want to follow the output of a task, please use the "follow" subcommand. export extern "pueue log" [ ...task_ids: string # View the task output of these specific tasks --json(-j) # Print the resulting tasks and output as json. By default only the last lines will be returned unless --full is provided. Take care, as the json cannot be streamed! If your logs are really huge, using --full can use all of your machine's RAM --lines(-l): string # Only print the last X lines of each task's output. This is done by default if you're looking at multiple tasks --full(-f) # Show the whole output --help(-h) # Print help ] # Follow the output of a currently running task. This command works like "tail -f" export extern "pueue follow" [ task_id?: string # The id of the task you want to watch. If no or multiple tasks are running, you have to specify the id. If only a single task is running, you can omit the id --lines(-l): string # Only print the last X lines of the output before following --help(-h) # Print help ] # Wait until tasks are finished. By default, this will wait for all tasks in the default group to finish. Note: This will also wait for all tasks that aren't somehow 'Done'. Includes: [Paused, Stashed, Locked, Queued, ...] export extern "pueue wait" [ ...task_ids: string # This allows you to wait for specific tasks to finish --group(-g): string # Wait for all tasks in a specific group --all(-a) # Wait for all tasks across all groups and the default group --quiet(-q) # Don't show any log output while waiting --status(-s): string # Wait for tasks to reach a specific task status --help(-h) # Print help ] # Remove all finished tasks from the list export extern "pueue clean" [ --successful-only(-s) # Only clean tasks that finished successfully --group(-g): string # Only clean tasks of a specific group --help(-h) # Print help ] # Kill all tasks, clean up afterwards and reset EVERYTHING! export extern "pueue reset" [ --children(-c) # Deprecated: this switch no longer has any effect --force(-f) # Don't ask for any confirmation --help(-h) # Print help ] # Remotely shut down the daemon. Should only be used if the daemon isn't started by a service manager export extern "pueue shutdown" [ --help(-h) # Print help ] # Set the amount of allowed parallel tasks By default, adjusts the amount of the default group. No tasks will be stopped, if this is lowered. This limit is only considered when tasks are scheduled. export extern "pueue parallel" [ parallel_tasks?: string # The amount of allowed parallel tasks. Setting this to 0 means an unlimited amount of parallel tasks --group(-g): string # Set the amount for a specific group --help(-h) # Print help ] def "nu-complete pueue completions shell" [] { [ "bash" "elvish" "fish" "power-shell" "zsh" "nushell" ] } # Generates shell completion files. This can be ignored during normal operations export extern "pueue completions" [ shell: string@"nu-complete pueue completions shell" # The target shell output_directory?: string # The output directory to which the file should be written --help(-h) # Print help ] # Print this message or the help of the given subcommand(s) export extern "pueue help" [ ] # Enqueue a task for execution. There're many different options when scheduling a task. Check the individual option help texts for more information. Furthermore, please remember that scheduled commands are executed via your system shell. This means that the command needs proper shell escaping. The safest way to preserve shell escaping is to surround your command with quotes, for example: pueue add 'ls $HOME && echo "Some string"' export extern "pueue help add" [ ] # Remove tasks from the list. Running or paused tasks need to be killed first export extern "pueue help remove" [ ] # Switches the queue position of two commands. Only works on queued and stashed commands export extern "pueue help switch" [ ] # Stashed tasks won't be automatically started. You have to enqueue them or start them by hand export extern "pueue help stash" [ ] # Enqueue stashed tasks. They'll be handled normally afterwards export extern "pueue help enqueue" [ ] # Resume operation of specific tasks or groups of tasks. By default, this resumes the default group and all its tasks. Can also be used force-start specific tasks. export extern "pueue help start" [ ] # Restart failed or successful task(s). By default, identical tasks will be created and enqueued, but it's possible to restart in-place. You can also edit a few properties, such as the path and the command, before restarting. export extern "pueue help restart" [ ] # Either pause running tasks or specific groups of tasks. By default, pauses the default group and all its tasks. A paused queue (group) won't start any new tasks. export extern "pueue help pause" [ ] # Kill specific running tasks or whole task groups.. Kills all tasks of the default group when no ids or a specific group are provided. export extern "pueue help kill" [ ] # Send something to a task. Useful for sending confirmations such as 'y\n' export extern "pueue help send" [ ] # Edit the command, path, label, or priority of a stashed or queued task. By default only the command is edited. Multiple properties can be added in one go. export extern "pueue help edit" [ ] # Use this to add or remove groups. By default, this will simply display all known groups. export extern "pueue help group" [ ] # Add a group by name export extern "pueue help group add" [ ] # Remove a group by name. This will move all tasks in this group to the default group! export extern "pueue help group remove" [ ] # Display the current status of all tasks export extern "pueue help status" [ ] # Accept a list or map of JSON pueue tasks via stdin and display it just like "pueue status". A simple example might look like this: pueue status --json | jq -c '.tasks' | pueue format-status export extern "pueue help format-status" [ ] # Display the log output of finished tasks. Only the last few lines will be shown by default. If you want to follow the output of a task, please use the "follow" subcommand. export extern "pueue help log" [ ] # Follow the output of a currently running task. This command works like "tail -f" export extern "pueue help follow" [ ] # Wait until tasks are finished. By default, this will wait for all tasks in the default group to finish. Note: This will also wait for all tasks that aren't somehow 'Done'. Includes: [Paused, Stashed, Locked, Queued, ...] export extern "pueue help wait" [ ] # Remove all finished tasks from the list export extern "pueue help clean" [ ] # Kill all tasks, clean up afterwards and reset EVERYTHING! export extern "pueue help reset" [ ] # Remotely shut down the daemon. Should only be used if the daemon isn't started by a service manager export extern "pueue help shutdown" [ ] # Set the amount of allowed parallel tasks By default, adjusts the amount of the default group. No tasks will be stopped, if this is lowered. This limit is only considered when tasks are scheduled. export extern "pueue help parallel" [ ] # Generates shell completion files. This can be ignored during normal operations export extern "pueue help completions" [ ] # Print this message or the help of the given subcommand(s) export extern "pueue help help" [ ]}export use completions *deleted file mode 100644+0 / −114 text lines
def "complete svn subcommands" [] { ^svn help | lines | skip until { str starts-with "Available subcommands:" } | skip 1 | each { str trim } | take until { is-empty } | split column " " | get column1}def "complete svn add paths" [] { ^svn status --depth infinity | lines | parse "{mode} {file}" | str trim | where mode == '?' | get file}def "complete svn revert paths" [] { ^svn status --depth infinity | lines | parse "{mode} {file}" | where mode == 'M' | str trim | get file}def "complete svn depth" [] { ['empty', 'files', 'immediates', 'infinity'] }def "complete svn changelists" [] { ^svn status --depth infinity | lines | parse "--- Changelist '{changelist}':" | get --ignore-errors changelist}# FIXME: This is commented out in order to leave unexterne'd commands be.# # Subversion is a tool for version control.# For additional information, see http://subversion.apache.org/#export extern svn [ #subcommand?: string@"complete svn subcommands" # for help on a specific subcommand. #--version # to see the program version and RA modules #--quiet # to see just the version number #--verbose # to see dependency versions as well#]# help (?, h): Describe the usage of this program or its subcommands.# usage: help [SUBCOMMAND...]export extern "svn help" [ subcommand?: string@"complete svn subcommands" # for help on a specific subcommand. --verbose(-v) # also show experimental subcommands and options]# Print the status of working copy files and directories.export extern "svn status" [ ...paths: path # PATHs --show-updates(-u) # display update information --verbose(-v) # print extra information --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity') --revision(-r): string # ARG (some commands also take ARG1:ARG2 range) --quiet(-q) # don't print unversioned items --no-ignore # disregard default and svn:ignore and svn:global-ignores property ignores --incremental # give output suitable for concatenation --xml # output in XML --ignore-externals # ignore externals definitions --changelist:string@"complete svn changelists" # operate only on members of changelist ARG]# FIXME: https://github.com/nushell/nushell/issues/5012# rest parameters do not play well with completions yet# the `paths` parameter should be `...paths`# Put new files and directories under version control.export extern "svn add" [ paths: path@"complete svn add paths" # unversioned PATHs for addition --targets: path # pass contents of file ARG as additional args --non-recursive(-N) # obsolete; same as --depth=empty --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity') --quiet(-q) # print nothing, or only summary information --force # ignore already versioned paths --no-ignore # disregard default and svn:ignore and svn:global-ignores property ignores --auto-props # enable automatic properties --no-auto-props # disable automatic properties --parents # add intermediate parents]# Restore pristine working copy state (undo local changes).export extern "svn revert" [ paths: path@"complete svn revert paths" --targets: path # pass contents of file as additional args --recursive(-R) # descend recursively, same as --depth=infinity --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity') --quiet(-q) # print nothing, or only summary information --changelist: string@"complete svn changelists" # operate only on members of changelist ARG --remove-added # reverting an added item will remove it from disk]# FIXME# SVN uses aliases for subcommands. E.g. `co` for `checkout`.# How to express that with nu extern commands?# Check out a working copy from a repository.export extern "svn checkout" [ ...url_with_rev:string # source path: path # destination --revision(-r) # ARG (some commands also take ARG1:ARG2 range) --quiet(-q) # print nothing, or only summary information --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity') --force # force operation to run --ignore-externals # ignore externals definitions]+64 / −53 text lines
def expand-home [] { let p = $in if ( $p =~ '~') { return ($p | path expand) } return $p}def direnv [] { [ { condition: {|before, after| ($before != $after) and ($after | path join '.env' | path exists) } code: r#' open .env | lines | parse --regex '\s*(?P<key>.+?)\s*=\s*?(?P<value>.+)?\s*' | reduce --fold {} { | entry, acc| $acc | upsert $entry.key ( $entry.value | str trim | expand-home ) } | load-env'# } ]}$env.config = { show_banner: false table: { mode: none } rm: { always_trash: true } completions: { use_ls_colors: true } # some experimental options buffer_editor: ["nvim" "--clean"] highlight_resolved_externals : true use_kitty_protocol : true render_right_prompt_on_last_line: true history: { file_format: "sqlite" isolation: true } hooks: { env_change: { PWD: (direnv) } }}def expand-home [] {
let p = $in
if ( $p =~ '~') {
return ($p | path expand)
}
return $p
}
def direnv [] {
[
{
condition: {|before, after| ($before != $after) and ($after | path join '.env' | path exists) }
code: r#'
open .env
| lines
| parse --regex '\s*(?P<key>.+?)\s*=\s*?(?P<value>.+)?\s*'
| reduce --fold {} { | entry, acc|
$acc | upsert $entry.key ( $entry.value | str trim | expand-home )
}
| load-env'#
}
]
}
$env.config = {
#color_config: $base16_theme # <-- this is the theme
use_ansi_coloring: true
edit_mode: vi
show_banner: false
table: {
mode: none
}
rm: {
always_trash: true
}
completions: {
use_ls_colors: true
}
cursor_shape: {
vi_insert: line
vi_normal: block
}
float_precision: 3
shell_integration: {
osc9_9: true
# unfortunatelly, this seems to be buggy on win32 with wezterm
osc133: false
}
# some experimental options
buffer_editor: ["nvim" "--clean"]
highlight_resolved_externals : true
use_kitty_protocol : true
history: {
file_format: "sqlite"
isolation: true
}
hooks: {
env_change: {
PWD: (direnv)
}
}
}
+123 / −123 text lines
# GLOBAL VARIABLES$env.WIN32 = ( $nu.os-info.name =~ "windows" )$env.WORKSPACE = if $env.WIN32 { "~/Workspaces" } else { "~/Workspace" | path expand }$env.DOTFILES = ( $env.WORKSPACE | path join 'dotfiles' )$env.NOTES = ("~/Notes" | path expand)$env.TOOLS = ("~/Tools" | path expand)$env.CARGO_HOME = ( "~/.cargo" | path expand )$env.GO_HOME = ( "~/.go" | path expand )$env.BARTIB_FILE = ( $env.NOTES | path join 'timetrack.txt')if $env.WIN32 { $env.Path = ( $env.Path | split row (char esep) | append ($env.CARGO_HOME | path join bin) | append ($env.GO_HOME | path join bin) | append ($env.HOME | path join .local bin) | uniq # filter so the paths are unique)} else { $env.PATH = ( $env.PATH | split row (char esep) | append ($env.CARGO_HOME | path join bin) | append ($env.GO_HOME | path join bin) | append ($env.HOME | path join .local bin) | uniq # filter so the paths are unique)}if not (which nvim | is-empty) { $env.EDITOR = 'nvim' $env.GIT_EDITOR = 'nvim'}if not (which neovide | is-empty) { $env.VISUAL = 'neovide'}if ($env | get -i TERM_PROGRAM) == WezTerm { $env.TERM = "xterm-256color"}if ( not $env.WIN32 ) { let tools_bin = ( $env.TOOLS | path join bin ) $env.PATH = ( $env.PATH | split row (char esep) | prepend $tools_bin )}# theme for ls and other programs, that use LS_COLORS$env.LS_COLORS = (try { vivid generate alabaster_dark | into string } catch {""})# Specifies how environment variables are:# - converted from a string to a value on Nushell startup (from_string)# - converted from a value back to a string when running external commands (to_string)# Note: The conversions happen *after* config.nu is loaded$env.ENV_CONVERSIONS = { "PATH": { from_string: { |s| $s | split row (char esep) } to_string: { |v| $v | str join (char esep) } } "Path": { from_string: { |s| $s | split row (char esep) } to_string: { |v| $v | str join (char esep) } }}$env.NU_LIB_DIRS = [ ($nu.default-config-dir | path join 'scripts') ($nu.default-config-dir | path join 'completions')]# generate aliases here and now, so that we can apply conditions.# later, in config.nu, the evaluated aliases will be sourcedsource ($nu.default-config-dir | path join 'gen-aliases.nu')# generate zoxide hooks for sourcing later onlet zoxide_config_path = $nu.default-config-dir | path join 'zoxide.nu'if not (which zoxide | is-empty) { zoxide init nushell | save --force $zoxide_config_path} else { '' | save -f $zoxide_config_path}let jj_completions_path = $nu.default-config-dir | path join 'completions' | path join 'jj-completions.nu'if not (which jj | is-empty) { jj util completion nushell | save --force $jj_completions_path} else { '' | save -f $jj_completions_path}let pueue_completions_path = $nu.default-config-dir | path join 'completions' | path join 'pueue-completions.nu'if not (which pueue | is-empty) { pueue completions nushell | save --force $pueue_completions_path} else { '' | save -f $pueue_completions_path}# TODO: figure out sensible bridges$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense'let carapace_config_path = $nu.default-config-dir | path join 'carapace.nu'if not (which carapace | is-empty) { carapace _carapace nushell | save --force $carapace_config_path} else { '' | save --force $carapace_config_path}def --env wslg [] { load-env { DISPLAY:':0' WAYLAND_DISPLAY:'wayland-0' PULSE_SERVER:'/mnt/wslg/PulseServer' XDG_RUNTIME_DIR:'/mnt/wslg/runtime-dir' }}if ( $env | get -i WSLENV | is-not-empty ) { wslg }# GLOBAL VARIABLES
$env.WIN32 = ( $nu.os-info.name =~ "windows" )
$env.WORKSPACE = if $env.WIN32 { "~/Workspaces" } else { "~/Workspace" | path expand }
$env.DOTFILES = ( $env.WORKSPACE | path join 'dotfiles' )
$env.NOTES = ("~/Notes" | path expand)
$env.TOOLS = ("~/Tools" | path expand)
$env.CARGO_HOME = ( "~/.cargo" | path expand )
$env.GO_HOME = ( "~/.go" | path expand )
$env.BARTIB_FILE = ( $env.NOTES | path join 'timetrack.txt')
if $env.WIN32 {
$env.Path = (
$env.Path
| split row (char esep)
| append ($env.CARGO_HOME | path join bin)
| append ($env.GO_HOME | path join bin)
| append ($env.TOOLS | path join bin)
| uniq # filter so the paths are unique
)
} else {
$env.PATH = (
$env.PATH
| split row (char esep)
| append ($env.CARGO_HOME | path join bin)
| append ($env.GO_HOME | path join bin)
| append ($env.TOOLS | path join bin)
| uniq # filter so the paths are unique
)
}
if not (which nvim | is-empty) {
$env.EDITOR = 'nvim'
$env.GIT_EDITOR = 'nvim'
}
if not (which neovide | is-empty) {
$env.VISUAL = 'neovide'
}
if ($env | get -i TERM_PROGRAM) == WezTerm {
$env.TERM = "xterm-256color"
}
if ( not $env.WIN32 ) {
let tools_bin = ( $env.TOOLS | path join bin )
$env.PATH = (
$env.PATH |
split row (char esep) |
prepend $tools_bin
)
}
# theme for ls and other programs, that use LS_COLORS
$env.LS_COLORS = (try { vivid generate alabaster_dark | into string } catch {""})
# Specifies how environment variables are:
# - converted from a string to a value on Nushell startup (from_string)
# - converted from a value back to a string when running external commands (to_string)
# Note: The conversions happen *after* config.nu is loaded
$env.ENV_CONVERSIONS = {
"PATH": {
from_string: { |s| $s | split row (char esep) }
to_string: { |v| $v | str join (char esep) }
}
"Path": {
from_string: { |s| $s | split row (char esep) }
to_string: { |v| $v | str join (char esep) }
}
}
$env.NU_LIB_DIRS = [
($nu.default-config-dir | path join 'scripts')
($nu.default-config-dir | path join 'completions')
]
# generate aliases here and now, so that we can apply conditions.
# later, in config.nu, the evaluated aliases will be sourced
source ($nu.default-config-dir | path join 'gen-aliases.nu')
# generate zoxide hooks for sourcing later on
let zoxide_config_path = $nu.default-config-dir | path join 'zoxide.nu'
if not (which zoxide | is-empty) {
zoxide init nushell | save --force $zoxide_config_path
} else {
'' | save -f $zoxide_config_path
}
let jj_completions_path = $nu.default-config-dir | path join 'completions' | path join 'jj-completions.nu'
if not (which jj | is-empty) {
jj util completion nushell | save --force $jj_completions_path
} else {
'' | save -f $jj_completions_path
}
let pueue_completions_path = $nu.default-config-dir | path join 'completions' | path join 'pueue-completions.nu'
if not (which pueue | is-empty) {
pueue completions nushell | save --force $pueue_completions_path
} else {
'' | save -f $pueue_completions_path
}
# TODO: figure out sensible bridges
$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense'
let carapace_config_path = $nu.default-config-dir | path join 'carapace.nu'
if not (which carapace | is-empty) {
carapace _carapace nushell | save --force $carapace_config_path
} else {
'' | save --force $carapace_config_path
}
def --env wslg [] {
load-env {
DISPLAY:':0'
WAYLAND_DISPLAY:'wayland-0'
PULSE_SERVER:'/mnt/wslg/PulseServer'
XDG_RUNTIME_DIR:'/mnt/wslg/runtime-dir'
}
}
if ( $env | get -i WSLENV | is-not-empty ) { wslg }
+1 / −1 text lines
+0 / −2 text lines
+10 / −9 text lines
+13 / −6 text lines
+13 / −6 text lines
+18 / −0 text lines
{ key = 'PageUp', action = wez.action.ScrollByLine(-1), }, { key = 'PageDown', action = wez.action.ScrollByLine(1), }, { key = 'PageUp', mods = 'SHIFT', action = wez.action.ScrollByPage(-0.42), }, { key = 'PageDown', mods = 'SHIFT', action = wez.action.ScrollByPage(0.42), },+0 / −7 text lines