This commit is contained in:
Christian Nieves
2025-01-06 19:01:39 +00:00
parent 3ea53a113f
commit 6f857496c0
6 changed files with 328 additions and 322 deletions

View File

@ -88,6 +88,8 @@ bind-key s split-window -v -c '#{pane_current_path}'
bind -n M-s set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}" bind -n M-s set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
# bind -n C-Space select-pane -D \; resize-pane -Z
bind -n M-z resize-pane -Z bind -n M-z resize-pane -Z
bind -n M-j resize-pane -D 5 bind -n M-j resize-pane -D 5

View File

@ -1,7 +1,7 @@
local use_google = require("utils").use_google local use_google = require("utils").use_google
if not use_google() then if not use_google() then
return {} return {}
end end
vim.opt.rtp:append("/google/src/head/depot/google3/experimental/users/fentanes/nvgoog/") vim.opt.rtp:append("/google/src/head/depot/google3/experimental/users/fentanes/nvgoog/")
@ -11,320 +11,317 @@ local glugOpts = require("glug").glugOpts
local superlazy = require("nvgoog.util.superlazy") local superlazy = require("nvgoog.util.superlazy")
return { return {
-- { url = "sso://user/fentanes/nvgoog" }, -- { url = "sso://user/fentanes/nvgoog" },
-- Prevent long sessions from losing cwd -- Prevent long sessions from losing cwd
-- Load google paths like //google/* with `gf` -- Load google paths like //google/* with `gf`
-- { import = "nvgoog.google.misc" }, -- { import = "nvgoog.google.misc" },
{ import = "nvgoog.google.format" }, { import = "nvgoog.google.format" },
-- maktaba is required by all google plugins -- maktaba is required by all google plugins
glug("maktaba", { glug("maktaba", {
lazy = true, lazy = true,
dependencies = {}, dependencies = {},
config = function() -- init? config = function() -- init?
vim.cmd("source /usr/share/vim/google/glug/bootstrap.vim") vim.cmd("source /usr/share/vim/google/glug/bootstrap.vim")
end, end,
}), }),
glug("googler", { glug("googler", {
event = "VeryLazy", event = "VeryLazy",
}), }),
glug("glaive"), glug("glaive"),
glug("alert"), glug("alert"),
glug("googlespell"), glug("googlespell"),
-- Enable logmsgs ASAP to avoid maktaba's log message queue filling up -- Enable logmsgs ASAP to avoid maktaba's log message queue filling up
glug("google-logo"), glug("google-logo"),
-- Add support for google filetypes -- Add support for google filetypes
glug("google-filetypes", { event = { "BufReadPre", "BufNewFile" }, dependencies = {} }), glug("google-filetypes", { event = { "BufReadPre", "BufNewFile" }, dependencies = {} }),
glug("add_usings"), glug("add_usings"),
-- Autogens boilerplate when creating new files -- Autogens boilerplate when creating new files
glug("autogen", { glug("autogen", {
event = "BufNewFile", event = "BufNewFile",
}), }),
-- Adds G4 support to the vcscommand plugin -- Adds G4 support to the vcscommand plugin
glug("googlepaths"), glug("googlepaths"),
-- Set up syntax, indent, and core settings for various filetypes -- Set up syntax, indent, and core settings for various filetypes
superlazy(glug("ft-cpp", { event = "BufRead,BufNewFile *.[ch],*.cc,*.cpp" })), superlazy(glug("ft-cpp", { event = "BufRead,BufNewFile *.[ch],*.cc,*.cpp" })),
-- superlazy(glug("ft-go", { event = "BufRead,BufNewFile *.go" })), -- superlazy(glug("ft-go", { event = "BufRead,BufNewFile *.go" })),
superlazy(glug("ft-java", { event = "BufRead,BufNewFile *.java" })), superlazy(glug("ft-java", { event = "BufRead,BufNewFile *.java" })),
superlazy(glug("ft-javascript", { event = "BufRead,BufNewFile *.js,*.jsx" })), superlazy(glug("ft-javascript", { event = "BufRead,BufNewFile *.js,*.jsx" })),
superlazy(glug("ft-kotlin", { event = "BufRead,BufNewFile *.kt,*.kts" })), superlazy(glug("ft-kotlin", { event = "BufRead,BufNewFile *.kt,*.kts" })),
superlazy(glug("ft-python", { event = "BufRead,BufNewFile *.py" })), superlazy(glug("ft-python", { event = "BufRead,BufNewFile *.py" })),
-- Configures nvim to respect Google's coding style -- Configures nvim to respect Google's coding style
superlazy(glug("googlestyle", { event = { "BufRead", "BufNewFile" } })), superlazy(glug("googlestyle", { event = { "BufRead", "BufNewFile" } })),
glug("ft-soy"), glug("ft-soy"),
glug("ft-gss"), glug("ft-gss"),
glug("ft-proto"), glug("ft-proto"),
glug("g4"), glug("g4"),
glug("outline-window"), glug("outline-window"),
glug("fzf-query"), glug("fzf-query"),
-- Open current file in chrome -- Open current file in chrome
glug("corpweb", { glug("corpweb", {
dependencies = { dependencies = {
glug("launchbrowser"), glug("launchbrowser"),
}, },
cmd = { cmd = {
-- Launches {query} under codesearch in a web browser -- Launches {query} under codesearch in a web browser
"CorpWebCs", "CorpWebCs",
-- Launches the current file under codesearch in a web browser -- Launches the current file under codesearch in a web browser
"CorpWebCsFile", "CorpWebCsFile",
-- Launches the current file doc view (i.e., Cantata, G3Docs, or godoc) -- Launches the current file doc view (i.e., Cantata, G3Docs, or godoc)
"CorpWebDocFindFile", "CorpWebDocFindFile",
-- Launches the current CL in Critique -- Launches the current CL in Critique
"CorpWebCritiqueCl", "CorpWebCritiqueCl",
-- Launches the current CL in Cider -- Launches the current CL in Cider
"CorpWebCider", "CorpWebCider",
-- Launches {query} under cs.chromium.org in a web browser -- Launches {query} under cs.chromium.org in a web browser
"CorpWebChromeCs", "CorpWebChromeCs",
}, },
}), }),
glug("relatedfiles", { glug("relatedfiles", {
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{ "<leader>rb", ":exec relatedfiles#selector#JumpToBuild()<CR>" }, { "<leader>rb", ":exec relatedfiles#selector#JumpToBuild()<CR>" },
{ "<leader>rt", ":exec relatedfiles#selector#JumpToTestFile()<CR>" }, { "<leader>rt", ":exec relatedfiles#selector#JumpToTestFile()<CR>" },
{ "<leader>rh", ":exec relatedfiles#selector#JumpToHeader()<CR>" }, { "<leader>rh", ":exec relatedfiles#selector#JumpToHeader()<CR>" },
{ "<leader>rc", ":exec relatedfiles#selector#JumpToCodeFile()<CR>" }, { "<leader>rc", ":exec relatedfiles#selector#JumpToCodeFile()<CR>" },
}, },
}), }),
{ "junegunn/fzf", dir = "~/.fzf", build = "./install --all" }, { "junegunn/fzf", dir = "~/.fzf", build = "./install --all" },
{ "junegunn/fzf.vim", dependencies = { "junegunn/fzf" } }, { "junegunn/fzf.vim", dependencies = { "junegunn/fzf" } },
-- Format google code -- Format google code
glug("codefmt-google", { glug("codefmt-google", {
dependencies = { dependencies = {
glug("codefmt", { glug("codefmt", {
opts = { opts = {
clang_format_executable = "/usr/bin/clang-format", clang_format_executable = "/usr/bin/clang-format",
clang_format_style = "function('codefmtgoogle#GetClangFormatStyle')", clang_format_style = "function('codefmtgoogle#GetClangFormatStyle')",
gofmt_executable = "/usr/lib/google-golang/bin/gofmt", gofmt_executable = "/usr/lib/google-golang/bin/gofmt",
prettier_executable = "/google/data/ro/teams/prettier/prettier", prettier_executable = "/google/data/ro/teams/prettier/prettier",
ktfmt_executable = { "/google/bin/releases/kotlin-google-eng/ktfmt/ktfmt", "--google-style" }, ktfmt_executable = { "/google/bin/releases/kotlin-google-eng/ktfmt/ktfmt", "--google-style" },
}, },
}), }),
}, },
opts = { opts = {
auto_format = { auto_format = {
["borg"] = "gclfmt", ["borg"] = "gclfmt",
["gcl"] = "gclfmt", ["gcl"] = "gclfmt",
["patchpanel"] = "gclfmt", ["patchpanel"] = "gclfmt",
["bzl"] = "buildifier", ["bzl"] = "buildifier",
["c"] = "clang-format", ["c"] = "clang-format",
["cpp"] = "clang-format", ["cpp"] = "clang-format",
["javascript"] = "clang-format", ["javascript"] = "clang-format",
["typescript"] = "clang-format", ["typescript"] = "clang-format",
["dart"] = "dartfmt", ["dart"] = "dartfmt",
["go"] = "gofmt", ["go"] = "gofmt",
["java"] = "google-java-format", ["java"] = "google-java-format",
["kotlin"] = "ktfmt", ["kotlin"] = "ktfmt",
["jslayout"] = "jslfmt", ["jslayout"] = "jslfmt",
["markdown"] = "mdformat", ["markdown"] = "mdformat",
["ncl"] = "nclfmt", ["ncl"] = "nclfmt",
["python,piccolo"] = "pyformat", ["python,piccolo"] = "pyformat",
["soy"] = "soyfmt", ["soy"] = "soyfmt",
["textpb"] = "text-proto-format", ["textpb"] = "text-proto-format",
["proto"] = "protofmt", ["proto"] = "protofmt",
["sql"] = "format_sql", ["sql"] = "format_sql",
}, },
}, },
cmd = { "FormatLines", "FormatCode", "AutoFormatBuffer" }, cmd = { "FormatLines", "FormatCode", "AutoFormatBuffer" },
event = "VimEnter", event = "VimEnter",
-- Setting up autocmds in init allows deferring loading the plugin until -- Setting up autocmds in init allows deferring loading the plugin until
-- the `BufWritePre` event. One caveat is we must call `codefmt#FormatBuffer()` -- the `BufWritePre` event. One caveat is we must call `codefmt#FormatBuffer()`
-- manually the first time since the plugin relies on the `BufWritePre` command to call it, -- manually the first time since the plugin relies on the `BufWritePre` command to call it,
-- but by the time it's first loaded it has already happened. -- but by the time it's first loaded it has already happened.
-- TODO: check if that is fixed when the following issue is fixed -- TODO: check if that is fixed when the following issue is fixed
-- https://github.com/folke/lazy.nvim/issues/858 -- https://github.com/folke/lazy.nvim/issues/858
-- if so, remove the call to `FormatBuffer` -- if so, remove the call to `FormatBuffer`
init = function(plugin) init = function(plugin)
local group = vim.api.nvim_create_augroup("autoformat_settings", {}) local group = vim.api.nvim_create_augroup("autoformat_settings", {})
local function autocmd(filetypes, formatter) local function autocmd(filetypes, formatter)
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = filetypes, pattern = filetypes,
group = group, group = group,
callback = function(event) callback = function(event)
vim.api.nvim_create_autocmd("BufWritePre", { vim.api.nvim_create_autocmd("BufWritePre", {
buffer = event.buf, buffer = event.buf,
group = group, group = group,
once = true, once = true,
command = "call codefmt#FormatBuffer() | AutoFormatBuffer " .. formatter, command = "call codefmt#FormatBuffer() | AutoFormatBuffer " .. formatter,
}) })
end, end,
}) })
end end
-- Build opts from possible parent specs since lazy.nvim doesn't provide it in `init` -- Build opts from possible parent specs since lazy.nvim doesn't provide it in `init`
local plugin_opts = require("lazy.core.plugin").values(plugin, "opts", false) local plugin_opts = require("lazy.core.plugin").values(plugin, "opts", false)
for filetypes, formatter in pairs(plugin_opts.auto_format or {}) do for filetypes, formatter in pairs(plugin_opts.auto_format or {}) do
autocmd(filetypes, formatter) autocmd(filetypes, formatter)
end end
end, end,
}), }),
-- Run blaze commands -- Run blaze commands
glug("blaze", { glug("blaze", {
dependencies = { dependencies = {
glug("blazedeps"), glug("blazedeps"),
}, },
cmd = { cmd = {
"Blaze", "Blaze",
"BlazeGoToSponge", "BlazeGoToSponge",
"BlazeViewCommandLog", "BlazeViewCommandLog",
"BlazeLoadErrors", "BlazeLoadErrors",
"BlazeDebugCurrentFileTest", "BlazeDebugCurrentFileTest",
"BlazeDebugCurrentTestMethod", "BlazeDebugCurrentTestMethod",
"BlazeDebugAddBreakpoint", "BlazeDebugAddBreakpoint",
"BlazeDebugClearBreakpoint", "BlazeDebugClearBreakpoint",
"BlazeDebugFinish", "BlazeDebugFinish",
"BlazeDepsUpdate", "BlazeDepsUpdate",
}, },
config = function() keys = function()
require("config.blaze") local function runCommandWithTarget(cmd)
end, return function()
keys = function() local targets = table.concat(vim.fn["blaze#GetTargets"](), " ")
local function runCommandWithTarget(cmd) local command = "VimuxRunCommand('" .. cmd .. " " .. targets .. "')"
return function() print(vim.inspect(command))
local targets = table.concat(vim.fn["blaze#GetTargets"](), " ") vim.cmd(command)
local command = "VimuxRunCommand('" .. cmd .. " " .. targets .. "')" end
print(vim.inspect(command)) end
vim.cmd(command) return {
end { "<leader>b", desc = "Blaze" },
end { "<leader>bb", runCommandWithTarget("blaze build"), desc = "Blaze Build" },
return { { "<leader>br", runCommandWithTarget("blaze run"), desc = "Blaze Run" },
{ "<leader>b", desc = "Blaze" }, { "<leader>bt", runCommandWithTarget("blaze test"), desc = "Blaze Test" },
{ "<leader>bb", runCommandWithTarget("blaze build"), desc = "Blaze Build" }, { "<leader>bc", runCommandWithTarget("build_cleaner"), desc = "Blaze Run" },
{ "<leader>br", runCommandWithTarget("blaze run"), desc = "Blaze Run" }, {
{ "<leader>bt", runCommandWithTarget("blaze test"), desc = "Blaze Test" }, "<leader>yb",
{ "<leader>bc", runCommandWithTarget("build_cleaner"), desc = "Blaze Run" }, ":let t = join(blaze#GetTargets(), ' ') | echo t | let @+ = t | let @\" = t<CR>",
{ desc = "Yank Blaze Target",
"<leader>yb", },
":let t = join(blaze#GetTargets(), ' ') | echo t | let @+ = t | let @\" = t<CR>", {
desc = "Yank Blaze Target", "<leader>bq",
}, function()
{ local targets = vim.fn["blaze#GetTargets"]()
"<leader>bq", for _, t in ipairs(targets) do
function() print(vim.inspect(t))
local targets = vim.fn["blaze#GetTargets"]() vim.cmd("VimuxRunCommand('blaze query " .. t:gsub(":.+", "") .. ":\\*" .. "')")
for _, t in ipairs(targets) do end
print(vim.inspect(t)) end,
vim.cmd("VimuxRunCommand('blaze query " .. t:gsub(":.+", "") .. ":\\*" .. "')") desc = "Blaze query the current package",
end },
end, }
desc = "Blaze query the current package", end,
}, }),
} -- Imports
end, glug("imp-google", {
}), dependencies = {
-- Imports glugOpts("vim-imp", {
glug("imp-google", { "flwyd/vim-imp",
dependencies = { opts = {
glugOpts("vim-imp", { ["Suggest[default]"] = { "buffer", "csearch", "ripgrep", "prompt" },
"flwyd/vim-imp", ["Report[default]"] = "popupnotify",
opts = { ["Location[default]"] = "packageroot",
["Suggest[default]"] = { "buffer", "csearch", "ripgrep", "prompt" }, -- ["Location[gcl]"] = "parent",
["Report[default]"] = "popupnotify", ["Pick[default]"] = "fzf",
["Location[default]"] = "packageroot", },
-- ["Location[gcl]"] = "parent", }),
["Pick[default]"] = "fzf", },
}, cmd = { "ImpSuggest", "ImpFirst" },
}), keys = {
}, { "<leader>i", ":ImpSuggest <C-r><C-w><cr>" },
cmd = { "ImpSuggest", "ImpFirst" }, },
keys = { }),
{ "<leader>i", ":ImpSuggest <C-r><C-w><cr>" }, {
}, url = "sso://user/fentanes/googlepaths.nvim",
}), event = { "VeryLazy", "BufReadCmd //*" },
{ opts = {},
url = "sso://user/fentanes/googlepaths.nvim", },
event = { "VeryLazy", "BufReadCmd //*" }, {
opts = {}, name = "ai.nvim",
}, url = "sso://googler@user/vvvv/ai.nvim",
{ },
name = "ai.nvim", {
url = "sso://googler@user/vvvv/ai.nvim", name = "cmp-nvim-ciderlsp",
}, url = "sso://googler@user/piloto/cmp-nvim-ciderlsp",
{ event = "VimEnter",
name = "cmp-nvim-ciderlsp", dependencies = {
url = "sso://googler@user/piloto/cmp-nvim-ciderlsp", "hrsh7th/nvim-cmp",
event = "VimEnter", },
dependencies = { },
"hrsh7th/nvim-cmp", {
}, name = "ciderlsp-nvim",
}, url = "sso://googler@user/kdark/ciderlsp-nvim",
{ event = "VimEnter",
name = "ciderlsp-nvim", dependencies = {
url = "sso://googler@user/kdark/ciderlsp-nvim", "hrsh7th/nvim-cmp",
event = "VimEnter", },
dependencies = { },
"hrsh7th/nvim-cmp", -- {
}, -- name = "nvim_figtree",
}, -- url = "sso://googler@user/jackcogdill/nvim-figtree",
-- { -- },
-- name = "nvim_figtree", {
-- url = "sso://googler@user/jackcogdill/nvim-figtree", name = "telescope_codesearch",
-- }, url = "sso://googler@user/vintharas/telescope-codesearch.nvim",
{ dependencies = { "nvim-telescope/telescope.nvim" },
name = "telescope_codesearch", config = function()
url = "sso://googler@user/vintharas/telescope-codesearch.nvim", end,
dependencies = { "nvim-telescope/telescope.nvim" }, },
config = function() {
end, name = "telescope_citc",
}, url = "sso://googler@user/aktau/telescope-citc.nvim",
{ dependencies = { "nvim-telescope/telescope.nvim" },
name = "telescope_citc", },
url = "sso://googler@user/aktau/telescope-citc.nvim", {
dependencies = { "nvim-telescope/telescope.nvim" }, name = "telescope_fig",
}, url = "sso://googler@user/tylersaunders/telescope-fig.nvim",
{ dependencies = { "nvim-telescope/telescope.nvim" },
name = "telescope_fig", },
url = "sso://googler@user/tylersaunders/telescope-fig.nvim", {
dependencies = { "nvim-telescope/telescope.nvim" }, name = "critique-nvim",
}, dir = "~/critique-nvim/",
{ lazy = false,
name = "critique-nvim", dependencies = {
dir = "~/critique-nvim/", "rktjmp/time-ago.vim",
lazy = false, "nvim-lua/plenary.nvim",
dependencies = { "nvim-telescope/telescope.nvim",
"rktjmp/time-ago.vim", "runiq/neovim-throttle-debounce",
"nvim-lua/plenary.nvim", },
"nvim-telescope/telescope.nvim", -- here are some mappings you might want:
"runiq/neovim-throttle-debounce", keys = {
}, { "]c", ":CritiqueGotoNextComment<CR>" },
-- here are some mappings you might want: { "[c", ":CritiqueGotoPrevComment<CR>" },
keys = { { "<Leader>lc", ":CritiqueToggleLineComment<CR>" },
{ "]c", ":CritiqueGotoNextComment<CR>" }, { "<Leader>ac", ":CritiqueToggleAllComments<CR>" },
{ "[c", ":CritiqueGotoPrevComment<CR>" }, { "<Leader>uc", ":CritiqueToggleUnresolvedComments<CR>" },
{ "<Leader>lc", ":CritiqueToggleLineComment<CR>" }, { "<Leader>fc", ":CritiqueFetchComments<CR>" },
{ "<Leader>ac", ":CritiqueToggleAllComments<CR>" }, { "<Leader>tc", ":CritiqueCommentsTelescope<CR>" },
{ "<Leader>uc", ":CritiqueToggleUnresolvedComments<CR>" }, },
{ "<Leader>fc", ":CritiqueFetchComments<CR>" }, config = function()
{ "<Leader>tc", ":CritiqueCommentsTelescope<CR>" }, -- Here are all the options and their default values:
}, require("critique.comments").setup({
config = function() -- debug = 1, -- default = 0
-- Here are all the options and their default values: -- Fetch the comments after calling `setup`.
require("critique.comments").setup({ auto_fetch = true, -- default = true
-- debug = 1, -- default = 0 auto_render = true, -- default = true
-- Fetch the comments after calling `setup`. -- Allow checking for comments on BufEnter events. This is throttled to once every 10 seconds.
auto_fetch = true, -- default = true frequent_fetch = true, -- default = false
auto_render = true, -- default = true verbose_notifications = true,
-- Allow checking for comments on BufEnter events. This is throttled to once every 10 seconds. })
frequent_fetch = true, -- default = false end,
verbose_notifications = true, },
}) {
end, url = "sso://googler@user/mccloskeybr/luasnip-google.nvim",
}, config = function()
{ require("luasnip-google").load_snippets()
url = "sso://googler@user/mccloskeybr/luasnip-google.nvim", end,
config = function() },
require("luasnip-google").load_snippets() {
end, name = "hg",
}, url = "sso://googler@user/smwang/hg.nvim",
{ dependencies = { "ipod825/libp.nvim" },
name = "hg", config = function()
url = "sso://googler@user/smwang/hg.nvim", require("hg").setup()
dependencies = { "ipod825/libp.nvim" }, end,
config = function() },
require("hg").setup()
end,
},
} }

View File

@ -1,9 +1,9 @@
return { return {
"preservim/vimux", "preservim/vimux",
"tmux-plugins/vim-tmux", "tmux-plugins/vim-tmux",
"christoomey/vim-tmux-navigator", "christoomey/vim-tmux-navigator",
"whatyouhide/vim-tmux-syntax", "whatyouhide/vim-tmux-syntax",
"tmux-plugins/vim-tmux-focus-events", "tmux-plugins/vim-tmux-focus-events",
-- 'jabirali/vim-tmux-yank', -- 'jabirali/vim-tmux-yank',
"skywind3000/asyncrun.vim", "skywind3000/asyncrun.vim",
} }

View File

@ -15,7 +15,7 @@ map <leader>` ysiw`
vmap <leader>` c`<C-R>"`<ESC> vmap <leader>` c`<C-R>"`<ESC>
" --------- SEARCH MAPPINGS --------- " --------- SEARCH MAPPINGS ---------
" unhilight search " unhighlight search
nnoremap <leader><space> :nohlsearch<CR> nnoremap <leader><space> :nohlsearch<CR>
" --------- CLIPBOARD MAPPINGS --------- " --------- CLIPBOARD MAPPINGS ---------
@ -46,4 +46,5 @@ nmap <leader>yf :let @+ = expand("%") \| let @" = expand("%")<cr>
" replace currently selected text with default register " replace currently selected text with default register
" without yanking it " without yanking it
vnoremap <leader>p "_dP vnoremap <leader>p "_dP
nnoremap <leader><leader> :VimuxOpenRunner<cr> :VimuxRunCommand '!!'<cr> :call VimuxSendKeys("Enter")<cr> nnoremap <leader><leader> :VimuxZoomRunner<cr> :VimuxRunCommand '!!'<cr> :call VimuxSendKeys("Enter")<cr>
nnoremap <leader>. :VimuxOpenRunner<cr> :VimuxRunCommand '!!'<cr> :call VimuxSendKeys("Enter")<cr>

View File

@ -152,3 +152,9 @@ source /google/bin/releases/gmscore-tools/cli/prod/setup_prod_gms.sh
abbr bq="blaze query" abbr bq="blaze query"
abbr br="blaze run" abbr br="blaze run"
abbr bb="blaze build" abbr bb="blaze build"
function phenodb() {
adb shell sqlite3 /data/data/com.google.android.gms/databases/phenotype.db "'$*'"
}
export PHENOTYPE_PACKAGE_NAME="com.google.YOUR.PHENOTYPE.PACKAGE.NAME"

View File

@ -13,7 +13,7 @@ autoload -Uz add-zsh-hook
add-zsh-hook chpwd g3path::hook add-zsh-hook chpwd g3path::hook
g3path::zle::accept-line () { g3path::zle::accept-line () {
if [[ -n $GOOGLE3_ROOT && ! $BUFFER =~ \\s*(bb|bq|br|blaze|g4|p4|g4d|add_dep|buildozer|build_cleaner|debug_android_lint|rabbit|hb|gqui|builddoctor|unused_deps|clipper|blaze_lint_refactoring|migrants_sh.sar) ]]; then if [[ -n $GOOGLE3_ROOT && ! $BUFFER =~ \\s*(bb|bq|br|blaze|g4|p4|g4d|add_dep|buildozer|build_cleaner|debug_android_lint|rabbit|hb|gqui|builddoctor|unused_deps|clipper|blaze_lint_refactoring|migrants_sh.sar|bloaty) ]]; then
BUFFER=${BUFFER// \/\// $GOOGLE3_ROOT\/} BUFFER=${BUFFER// \/\// $GOOGLE3_ROOT\/}
fi fi
zle .accept-line zle .accept-line