Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
3b7725477784b7b2eedde116c19e53981884ba82
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
- Parent 1: 8eea289763d3 · Showing diff
- Parent 2: d8cdf2880247 · Diff against parent 2
bugabingas dorkfiles
3b7725477784b7b2eedde116c19e53981884ba82
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
+562 / −55 text lines
+1 / −0 text lines
+10 / −0 text lines
+7 / −1 text lines
return output.toString();+6 / −0 text lines
+20 / −16 text lines
"ui" = { fg = "ui_normal", bg = "ui_backdrop" }"ui.window" = { fg = "ui_unfocus", bg = "ui_backdrop" }"ui.window" = { fg = "ui_important_global", bg = "ui_backdrop" }"ui.menu.selected" = { fg = "ui_focus", bg = "ui_backdrop", modifiers = ["ui.menu.selected" = { fg = "ui_focus", modifiers = ["ui.virtual.ruler" = { bg = "ui_unfocus" }+20 / −16 text lines
"ui" = { fg = "ui_normal", bg = "ui_backdrop" }"ui.window" = { fg = "ui_unfocus", bg = "ui_backdrop" }"ui.window" = { fg = "ui_important_global", bg = "ui_backdrop" }"ui.menu.selected" = { fg = "ui_focus", bg = "ui_backdrop", modifiers = ["ui.menu.selected" = { fg = "ui_focus", modifiers = ["ui.virtual.ruler" = { bg = "ui_unfocus" }+3 / −0 text lines
+2 / −0 text lines
new file mode 100644+93 / −0 text lines
export def coreutils-check [] { # assert rust coreutils exist use std assert assert (not (which coreutils | is-empty))}# nu builtins are commented out but not forgotten aboutexport alias b2sum = coreutils b2sumexport alias b3sum = coreutils b3sumexport alias base32 = coreutils base32export alias base64 = coreutils base64export alias basename = coreutils basenameexport alias basenc = coreutils basencexport alias cat = coreutils catexport alias cksum = coreutils cksumexport alias comm = coreutils comm# export alias cp = coreutils cpexport alias csplit = coreutils csplitexport alias cut = coreutils cut# export alias date = coreutils dateexport alias dd = coreutils ddexport alias df = coreutils dfexport alias dir = coreutils direxport alias dircolors = coreutils dircolorsexport alias dirname = coreutils dirname# export alias du = coreutils du# export alias echo = coreutils echo# export alias env = coreutils envexport alias expand = coreutils expandexport alias expr = coreutils exprexport alias factor = coreutils factor# export alias false = coreutils false# export alias fmt = coreutils fmtexport alias fold = coreutils foldexport alias hashsum = coreutils hashsumexport alias head = coreutils head# export alias join = coreutils joinexport alias link = coreutils linkexport alias ln = coreutils ln# export alias ls = coreutils lsexport alias md5sum = coreutils md5sumexport alias mkdir = coreutils mkdirexport alias mktemp = coreutils mktempexport alias more = coreutils more# export alias mv = coreutils mvexport alias nl = coreutils nlexport alias numfmt = coreutils numfmtexport alias od = coreutils odexport alias paste = coreutils pasteexport alias pr = coreutils prexport alias printenv = coreutils printenvexport alias printf = coreutils printfexport alias ptx = coreutils ptxexport alias pwd = coreutils pwdexport alias readlink = coreutils readlinkexport alias realpath = coreutils realpathexport alias relpath = coreutils relpath# export alias rm = coreutils rmexport alias rmdir = coreutils rmdir# export alias seq = coreutils seqexport alias sha1sum = coreutils sha1sumexport alias sha224sum = coreutils sha224sumexport alias sha256sum = coreutils sha256sumexport alias sha3 = coreutils sha3-224sumexport alias sha3 = coreutils sha3-256sumexport alias sha3 = coreutils sha3-384sumexport alias sha3 = coreutils sha3-512sumexport alias sha384sum = coreutils sha384sumexport alias sha3sum = coreutils sha3sumexport alias sha512sum = coreutils sha512sumexport alias shake128sum = coreutils shake128sumexport alias shake256sum = coreutils shake256sumexport alias shred = coreutils shredexport alias shuf = coreutils shuf# export alias sleep = coreutils sleep# export alias sort = coreutils sort# export alias split = coreutils splitexport alias sum = coreutils sumexport alias tac = coreutils tacexport alias tail = coreutils tailexport alias tee = coreutils teeexport alias test = coreutils test# export alias touch = coreutils touchexport alias tr = coreutils tr# export alias true = coreutils trueexport alias truncate = coreutils truncateexport alias tsort = coreutils tsortexport alias unexpand = coreutils unexpand# export alias uniq = coreutils uniqexport alias unlink = coreutils unlinkexport alias vdir = coreutils vdirexport alias wc = coreutils wcexport alias yes = coreutils yes+12 / −0 text lines
+5 / −5 text lines
+21 / −13 text lines
new file mode 100755+71 / −0 text lines
#!/usr/bin/java --source 17import static java.lang.System.* ;import java.util.*;class diff { public static void main(String[] command_line_arguments) throws Throwable { if(command_line_arguments.length != 7) throw fail("svn diff was supposed to give us 7 arguments. did the interface change? we got %s arguments.", command_line_arguments.length); //some old gnudiff flag, which newer tools ignore var ignored_unified_flag = command_line_arguments[0]; if(!ignored_unified_flag.equals("-u")) throw fail("the first argument should be the `-u` flag, which will be ignored, but was %s.", ignored_unified_flag); var left_label_flag = command_line_arguments[1]; var left_label = command_line_arguments[2]; var right_label_flag = command_line_arguments[3]; var right_label = command_line_arguments[4]; if(!(left_label_flag.equals("-L") && right_label_flag.equals("-L"))) throw fail("flags for the labes should have been `-L`, but were %s and %s.", left_label_flag, right_label_flag); var left_file = command_line_arguments[5]; var right_file = command_line_arguments[6]; var code = call("difft", "--tab-width","2", right_file, left_file); throw exit(code); } static int call( String... command) throws Exception { return new ProcessBuilder() .command(command) .inheritIO() .start() .onExit() .join() .exitValue(); } static Throwable exit(int code) { System.exit(code); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); } static String emphasize_global(String message) { return "\033[4m" + message + "\033[0m"; } static String emphasize_local(String message) { return "\033[3m" + message + "\033[0m"; } static Throwable fail(String message, Object... arguments) { out.printf(message, arguments); System.exit(1); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); } static Throwable fail() { System.exit(1); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); }}// vim:ft=javanew file mode 100755+74 / −0 text lines
#!/usr/bin/java --source 17import static java.lang.System.* ;import java.util.*;class diff3 { public static void main(String[] command_line_arguments) throws Throwable { if(command_line_arguments.length != 9) throw fail("svn diff3 was supposed to give us 9 arguments. did the interface change? we got %s arguments.", command_line_arguments.length); //some old gnudiff flag, which meld ignores var ignored_unified_flag = command_line_arguments[0]; if(!ignored_unified_flag.equals("-u")) throw fail("the first argument should be the `-u` flag, which meld will ignore, but was %s.", ignored_unified_flag); var left_label_flag = command_line_arguments[1]; var left_label = command_line_arguments[2]; var right_label_flag = command_line_arguments[3]; var right_label = command_line_arguments[4]; if(!(left_label_flag.equals("-L") && right_label_flag.equals("-L"))) throw fail("flags for the labes should have been `-L`, but were %s and %s.", left_label_flag, right_label_flag); var left_file = command_line_arguments[5]; var right_file = command_line_arguments[6]; out.printf("%s --label '%s' '%s' --label '%s' '%s'%n", emphasize_global("meld"), left_label, left_file, right_label, right_file); throw fail("not yet"); // var code = call("meld","--auto-merge", "--label", left_label, left_file, "--label", right_label, right_file); // throw exit(code); } static int call( String... command) throws Exception { return new ProcessBuilder() .command(command) .inheritIO() .start() .onExit() .join() .exitValue(); } static Throwable exit(int code) { System.exit(code); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); } static String emphasize_global(String message) { return "\033[4m" + message + "\033[0m"; } static String emphasize_local(String message) { return "\033[3m" + message + "\033[0m"; } static Throwable fail(String message, Object... arguments) { out.printf(message, arguments); System.exit(1); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); } static Throwable fail() { System.exit(1); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); }}// vim:ft=javanew file mode 100755+60 / −0 text lines
#!/usr/bin/java --source 17import static java.lang.System.* ;import java.util.*;class merge { public static void main(String[] command_line_arguments) throws Throwable { if(command_line_arguments.length != 5) throw fail("svn diff was supposed to give us 5 arguments. did the interface change? we got %s arguments.", command_line_arguments.length); var base_file = command_line_arguments[0]; var theirs_file = command_line_arguments[1]; var mine_file = command_line_arguments[2]; var merged_file = command_line_arguments[3]; var wcpath_file = command_line_arguments[4]; var code = call("meld", "--label", "Mine", mine_file, "--label", "WC", wcpath_file, "--label", "Theirs", theirs_file, "--output", merged_file); throw exit(code); } static int call( String... command) throws Exception { return new ProcessBuilder() .command(command) .inheritIO() .start() .onExit() .join() .exitValue(); } static Throwable exit(int code) { System.exit(code); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); } static String emphasize_global(String message) { return "\033[4m" + message + "\033[0m"; } static String emphasize_local(String message) { return "\033[3m" + message + "\033[0m"; } static Throwable fail(String message, Object... arguments) { out.printf(message, arguments); System.exit(1); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); } static Throwable fail() { System.exit(1); //abuse control flow to make compiler realize `exit` will never return return new Throwable(); }}// vim:ft=javanew file mode 100644+20 / −0 text lines
new file mode 100644+133 / −0 text lines
# Don't ask for confirmations#assume_yes = true# Disable specific steps - same options as the command line flag#disable = ["system", "emacs"]# Ignore failures for these steps#ignore_failures = ["powershell"]# Run specific steps - same options as the command line flag#only = ["system", "emacs"]# Do not ask to retry failed steps (default: false)#no_retry = true# Sudo command to be used#sudo_command = "sudo"# Run `sudo -v` to cache credentials at the start of the run; this avoids a# blocking password prompt in the middle of a possibly-unattended run.#pre_sudo = false# Run inside tmux#run_in_tmux = true# List of remote machines with Topgrade installed on them#remote_topgrades = ["toothless", "pi", "parnas"]# Arguments to pass SSH when upgrading remote systems#ssh_arguments = "-o ConnectTimeout=2"# Path to Topgrade executable on remote machines#remote_topgrade_path = ".cargo/bin/topgrade"# Arguments to pass tmux when pulling Repositories#tmux_arguments = "-S /var/tmux.sock"# Do not set the terminal title#set_title = false# Display the time in step titles# display_time = true# Cleanup temporary or old files#cleanup = true# Skip sending a notification at the end of a run#skip_notify = true# Skip the preamble displayed when topgrade is run#display_preamble = false[git]#max_concurrency = 5# Additional git repositories to pull#repos = [# "~/src/*/",# "~/.config/something"#]# Don't pull the predefined git repos#pull_predefined = false# Arguments to pass Git when pulling Repositories#arguments = "--rebase --autostash"[composer]#self_update = true# Commands to run before anything[pre_commands]#"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"# Custom commands[commands]#"Python Environment" = "~/dev/.env/bin/pip install -i https://pypi.python.org/simple -U --upgrade-strategy eager jupyter"[brew]#greedy_cask = true#autoremove = true[linux]# Arch Package Manager to use. Allowed values: autodetect, aura, garuda_update, pacman, pamac, paru, pikaur, trizen, yay.#arch_package_manager = "pacman"# Arguments to pass yay (or paru) when updating packages#yay_arguments = "--nodevel"# Arguments to pass dnf when updating packages#dnf_arguments = "--refresh"#aura_aur_arguments = "-kx"#aura_pacman_arguments = ""#garuda_update_arguments = ""#show_arch_news = true#trizen_arguments = "--devel"#pikaur_arguments = ""#pamac_arguments = "--no-devel"#enable_tlmgr = true#emerge_sync_flags = "-q"#emerge_update_flags = "-uDNa --with-bdeps=y world"#redhat_distro_sync = false#rpm_ostree = false#nix_arguments = "--flake"[python]#enable_pip_review = true ###disabled by default#enable_pipupgrade = true ###disabled by default[windows]# Manually select Windows updates#accept_all_updates = false#open_remotes_in_new_terminal = true#wsl_update_pre_release = true#wsl_update_use_web_download = true# Causes Topgrade to rename itself during the run to allow package managers# to upgrade it. Use this only if you installed Topgrade by using a package# manager such as Scoop or Cargo#self_rename = true[npm]# Use sudo if the NPM directory isn't owned by the current user#use_sudo = true[firmware]# Offer to update firmware; if false just check for and display available updates#upgrade = true[flatpak]# Use sudo for updating the system-wide installation#use_sudo = true[distrobox]#use_root = false#containers = ["archlinux-latest"]+1 / −1 text lines
+3 / −3 text lines