Compare commits
13 Commits
08cf0ce23e
...
a3155ba0dd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3155ba0dd | ||
|
|
e9952923f6 | ||
|
|
768a1d8d43 | ||
|
|
3e8fbea56c | ||
|
|
077ca58813 | ||
|
|
c6efb6264e | ||
|
|
a762f1e557 | ||
|
|
77dc5e935f | ||
|
|
669411f279 | ||
|
|
c8e4a2bbcf | ||
|
|
4d6b854f4d | ||
|
|
4e0f21a398 | ||
|
|
2ec13f085c |
@@ -1 +1 @@
|
|||||||
{"copilot.lua":"1.393.0"}
|
{"copilot.lua":"1.417.0"}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ require("olinpin.set")
|
|||||||
require("olinpin.lazy")
|
require("olinpin.lazy")
|
||||||
require("olinpin.remap")
|
require("olinpin.remap")
|
||||||
require("olinpin.commands")
|
require("olinpin.commands")
|
||||||
|
require("olinpin.lsp-config")
|
||||||
|
|
||||||
-- this needs to be set after lazy
|
-- this needs to be set after lazy
|
||||||
vim.o.timeoutlen = 0
|
vim.o.timeoutlen = 0
|
||||||
|
|||||||
27
nvim/lua/olinpin/lsp-config.lua
Normal file
27
nvim/lua/olinpin/lsp-config.lua
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
-- LSP error filtering and configuration
|
||||||
|
|
||||||
|
-- Filter out noise from LSP logs
|
||||||
|
local original_handler = vim.lsp.handlers["window/logMessage"]
|
||||||
|
vim.lsp.handlers["window/logMessage"] = function(err, result, ctx, config)
|
||||||
|
-- Suppress harper-ls didSave warnings (harmless)
|
||||||
|
if result and result.message and result.message:match("didSave.*not implemented") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
-- Call original handler for other messages
|
||||||
|
if original_handler then
|
||||||
|
return original_handler(err, result, ctx, config)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Filter publish_diagnostics to exclude minio temp file errors
|
||||||
|
local original_diagnostics = vim.lsp.handlers["textDocument/publishDiagnostics"]
|
||||||
|
vim.lsp.handlers["textDocument/publishDiagnostics"] = function(err, result, ctx, config)
|
||||||
|
if result and result.uri then
|
||||||
|
if result.uri:match("minio%-data") or result.uri:match("%.minio%.sys") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if original_diagnostics then
|
||||||
|
return original_diagnostics(err, result, ctx, config)
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -2,16 +2,24 @@ return {
|
|||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>/", desc = "Toggle comment" },
|
{ "<leader>/", desc = "Toggle comment" },
|
||||||
|
{ "<leader>/", mode = "v", desc = "Toggle comment" },
|
||||||
},
|
},
|
||||||
config = function ()
|
config = function()
|
||||||
require('Comment').setup({
|
require('Comment').setup({
|
||||||
opleader = {
|
opleader = {
|
||||||
-- Line-comment toggle keymap
|
|
||||||
line = '<leader>/'
|
line = '<leader>/'
|
||||||
},
|
},
|
||||||
toggler = {
|
toggler = {
|
||||||
line = "<leader>/"
|
line = "<leader>/"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Set commentstring for SQL
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
pattern = { "sql", "mysql", "plsql" },
|
||||||
|
callback = function()
|
||||||
|
vim.bo.commentstring = "-- %s"
|
||||||
|
end,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,15 @@ return {
|
|||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- SQL completion with vim-dadbod
|
||||||
|
cmp.setup.filetype({ "sql", "mysql", "plsql" }, {
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = "vim-dadbod-completion" },
|
||||||
|
}, {
|
||||||
|
{ name = "buffer" },
|
||||||
|
}),
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
{ 'tpope/vim-dadbod', lazy = true },
|
{ 'tpope/vim-dadbod', lazy = true },
|
||||||
{ 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql' }, lazy = true },
|
{ 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql' }, lazy = true },
|
||||||
|
{ 'pbogut/vim-dadbod-ssh' },
|
||||||
},
|
},
|
||||||
cmd = {
|
cmd = {
|
||||||
'DBUI',
|
'DBUI',
|
||||||
@@ -11,7 +12,12 @@ return {
|
|||||||
'DBUIFindBuffer',
|
'DBUIFindBuffer',
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
-- Your DBUI configuration
|
|
||||||
vim.g.db_ui_use_nerd_fonts = 1
|
vim.g.db_ui_use_nerd_fonts = 1
|
||||||
|
|
||||||
|
-- Configure SSH port range to avoid Redis ports (7001-7003, 8001-8003, 9001-9002)
|
||||||
|
vim.g.db_adapter_ssh_port_range = vim.fn.extend(
|
||||||
|
vim.fn.range(7010, 7099),
|
||||||
|
vim.fn.range(8010, 8099)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ return {
|
|||||||
keys = {
|
keys = {
|
||||||
{ "<leader>dd", function() require("duck").hatch() end, desc = "Duck hatch" },
|
{ "<leader>dd", function() require("duck").hatch() end, desc = "Duck hatch" },
|
||||||
{ "<leader>dc", function() require("duck").hatch("🐿️", 20) end, desc = "Duck squirrel" },
|
{ "<leader>dc", function() require("duck").hatch("🐿️", 20) end, desc = "Duck squirrel" },
|
||||||
|
{ "<leader>db", function() require("duck").hatch("🦋", 20) end, desc = "Duck squirrel" },
|
||||||
{ "<leader>dk", function() require("duck").cook() end, desc = "Duck cook" },
|
{ "<leader>dk", function() require("duck").cook() end, desc = "Duck cook" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,6 +122,12 @@ return {
|
|||||||
init = function()
|
init = function()
|
||||||
-- Do not crowd home directory with NPM cache folder
|
-- Do not crowd home directory with NPM cache folder
|
||||||
vim.env.npm_config_cache = vim.env.HOME .. "/.cache/npm"
|
vim.env.npm_config_cache = vim.env.HOME .. "/.cache/npm"
|
||||||
|
|
||||||
|
-- Ensure nvm node is in PATH for LSP servers
|
||||||
|
local nvm_node = vim.env.HOME .. "/.nvm/versions/node/v22.14.0/bin"
|
||||||
|
if vim.fn.isdirectory(nvm_node) == 1 and not vim.env.PATH:find(nvm_node, 1, true) then
|
||||||
|
vim.env.PATH = nvm_node .. ":" .. vim.env.PATH
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
ui = {
|
ui = {
|
||||||
@@ -202,6 +208,23 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
workspace_folders = {
|
||||||
|
{
|
||||||
|
name = "root",
|
||||||
|
uri = vim.uri_from_fname(vim.fn.getcwd()),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
on_new_config = function(config, root_dir)
|
||||||
|
config.settings = config.settings or {}
|
||||||
|
config.settings.typescript = config.settings.typescript or {}
|
||||||
|
config.settings.typescript.tsserver = config.settings.typescript.tsserver or {}
|
||||||
|
config.settings.typescript.tsserver.watchOptions = {
|
||||||
|
excludeDirectories = {
|
||||||
|
"**/node_modules",
|
||||||
|
"**/.git",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
vim.lsp.enable("ts_ls")
|
vim.lsp.enable("ts_ls")
|
||||||
|
|
||||||
@@ -219,6 +242,14 @@ return {
|
|||||||
format = {
|
format = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
files = {
|
||||||
|
exclude = {
|
||||||
|
"**/.git/**",
|
||||||
|
"**/node_modules/**",
|
||||||
|
"**/vendor/**/{Tests,tests}/**",
|
||||||
|
"**/.history/**",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
return {
|
|
||||||
"ravitemer/mcphub.nvim",
|
|
||||||
event = "VeryLazy",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
},
|
|
||||||
build = "npm install -g mcp-hub@latest", -- Installs `mcp-hub` node binary globally
|
|
||||||
config = function()
|
|
||||||
require("mcphub").setup({
|
|
||||||
extensions = {
|
|
||||||
avante = {
|
|
||||||
make_slash_commands = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,12 @@
|
|||||||
return {
|
return {
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
on_open = function(win)
|
||||||
|
local buf = vim.api.nvim_win_get_buf(win)
|
||||||
|
vim.api.nvim_buf_set_option(buf, "filetype", "")
|
||||||
|
end,
|
||||||
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("notify").setup(opts)
|
require("notify").setup(opts)
|
||||||
vim.notify = require("notify")
|
vim.notify = require("notify")
|
||||||
|
|||||||
@@ -13,7 +13,12 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"kkharji/sqlite.lua",
|
{
|
||||||
|
"kkharji/sqlite.lua",
|
||||||
|
config = function()
|
||||||
|
vim.g.sqlite_clib_path = "/opt/homebrew/opt/sqlite/lib/libsqlite3.dylib"
|
||||||
|
end,
|
||||||
|
},
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,8 +44,10 @@ end
|
|||||||
return {
|
return {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
cmd = "Telescope",
|
cmd = "Telescope",
|
||||||
tag = "0.1.8",
|
dependencies = {
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>ft", grepInFiles, desc = "Live grep by filetype" },
|
{ "<leader>ft", grepInFiles, desc = "Live grep by filetype" },
|
||||||
{ "<leader>*", function() require("telescope.builtin").grep_string() end, desc = "Grep current string" },
|
{ "<leader>*", function() require("telescope.builtin").grep_string() end, desc = "Grep current string" },
|
||||||
|
|||||||
@@ -1,51 +1,29 @@
|
|||||||
return {
|
return {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
event = "VeryLazy",
|
lazy = false,
|
||||||
cmd = 'TSUpdate',
|
build = ':TSUpdate',
|
||||||
config = function()
|
config = function()
|
||||||
require'nvim-treesitter.configs'.setup {
|
local ensure_installed = {
|
||||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
"lua", "vim", "vimdoc", "javascript", "typescript", "tsx",
|
||||||
ensure_installed = {
|
"html", "css", "json", "yaml", "markdown", "bash", "python",
|
||||||
"vimdoc",
|
"php", "vue", "dockerfile", "go", "rust",
|
||||||
"bash",
|
}
|
||||||
"css",
|
|
||||||
"javascript",
|
|
||||||
"python",
|
|
||||||
"c",
|
|
||||||
"lua",
|
|
||||||
"vim",
|
|
||||||
"vimdoc",
|
|
||||||
"query",
|
|
||||||
"go",
|
|
||||||
"markdown",
|
|
||||||
"markdown_inline",
|
|
||||||
"regex",
|
|
||||||
"swift",
|
|
||||||
"php",
|
|
||||||
"kotlin",
|
|
||||||
"rust",
|
|
||||||
"haskell",
|
|
||||||
"html"
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
-- Auto-install missing parsers
|
||||||
sync_install = false,
|
vim.defer_fn(function()
|
||||||
|
for _, lang in ipairs(ensure_installed) do
|
||||||
-- Automatically install missing parsers when entering buffer
|
local ok = pcall(vim.treesitter.language.inspect, lang)
|
||||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
if not ok then
|
||||||
auto_install = true,
|
vim.cmd("TSInstall " .. lang)
|
||||||
|
end
|
||||||
highlight = {
|
end
|
||||||
enable = true,
|
end, 100)
|
||||||
|
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
|
||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
|
||||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
||||||
-- Instead of true it can also be a list of languages
|
|
||||||
additional_vim_regex_highlighting = {"markdown"}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
|
-- Start treesitter highlighting for all buffers with a parser
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
callback = function(args)
|
||||||
|
pcall(vim.treesitter.start, args.buf)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -177,39 +177,50 @@ function gcmr() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function cmr() {
|
function cmr() {
|
||||||
if [[ "$*" == "--draft" ]]
|
local draft=""
|
||||||
then
|
local target_branch=""
|
||||||
draft="--draft"
|
local reviewer=""
|
||||||
else
|
|
||||||
draft=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
reviewers=""
|
while [[ $# -gt 0 ]]; do
|
||||||
if [[ $1 =~ .*",".* ]]; then
|
case "$1" in
|
||||||
reviewers="--reviewer=$1";
|
--draft)
|
||||||
fi;
|
draft="--draft"
|
||||||
|
;;
|
||||||
|
--target-branch=*)
|
||||||
|
target_branch="${1#--target-branch=}"
|
||||||
|
;;
|
||||||
|
--target-branch)
|
||||||
|
target_branch="$2"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
reviewer="$1"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
current_branch=$(git branch --show-current)
|
current_branch=$(git branch --show-current)
|
||||||
if [[ $current_branch == "master" ]] || [[ $current_branch == "beta" ]] || [[ $current_branch == "acceptance" ]] || [[ $current_branch == "main" ]] || [[ $current_branch == "release" ]] ;
|
if [[ $current_branch == "master" ]] || [[ $current_branch == "beta" ]] || [[ $current_branch == "acceptance" ]] || [[ $current_branch == "main" ]] || [[ $current_branch == "release" ]]; then
|
||||||
then echo "Checkout a feature branch" && return;
|
echo "Checkout a feature branch" && return
|
||||||
fi;
|
|
||||||
|
|
||||||
# Check if 'main' branch exists in the remote repository
|
|
||||||
current_project=$(basename $(pwd))
|
|
||||||
|
|
||||||
if [[ ! -z $2 ]]; then
|
|
||||||
target_branch=$2
|
|
||||||
elif [[ $current_project =~ "vrm-(front|api)" ]]; then
|
|
||||||
target_branch="release"
|
|
||||||
else
|
|
||||||
target_branch="master"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $1 == "--target-branch" ]]; then
|
if [[ -z "$target_branch" ]]; then
|
||||||
target_branch=$2
|
current_project=$(basename $(pwd))
|
||||||
fi;
|
local pattern="vrm-(front|api)"
|
||||||
|
if [[ $current_project =~ $pattern ]]; then
|
||||||
|
target_branch="release"
|
||||||
|
else
|
||||||
|
target_branch="master"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
glab mr create -a oliver $reviewers --target-branch=$target_branch -t "Merge branch: '$(git branch --show-current)' into $target_branch" --fill -y $draft
|
local reviewers_arg=""
|
||||||
|
if [[ -n "$reviewer" ]]; then
|
||||||
|
reviewers_arg="--reviewer=$reviewer"
|
||||||
|
fi
|
||||||
|
|
||||||
|
glab mr create -a oliver $reviewers_arg --target-branch=$target_branch -t "Merge branch: '$(git branch --show-current)' into $target_branch" --fill -y $draft
|
||||||
}
|
}
|
||||||
|
|
||||||
function glisu() {
|
function glisu() {
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
# NVM lazy loading (speeds up shell startup significantly)
|
# NVM setup
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
|
||||||
|
# Add default node to PATH (for child processes and immediate use)
|
||||||
|
export PATH="$NVM_DIR/versions/node/v22.14.0/bin:$PATH"
|
||||||
|
|
||||||
|
# Lazy load nvm command only (node/npm/npx work directly from PATH)
|
||||||
nvm() {
|
nvm() {
|
||||||
unset -f nvm node npm npx
|
unset -f nvm
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
nvm "$@"
|
nvm "$@"
|
||||||
}
|
}
|
||||||
node() { nvm; unset -f node; node "$@"; }
|
|
||||||
npm() { nvm; unset -f npm; npm "$@"; }
|
|
||||||
npx() { nvm; unset -f npx; npx "$@"; }
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ die() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
list_projects() {
|
list_tmuxinator_projects() {
|
||||||
tmuxinator list 2>/dev/null \
|
tmuxinator list 2>/dev/null \
|
||||||
| sed '1{/tmuxinator projects:/d;}' \
|
| sed '1{/tmuxinator projects:/d;}' \
|
||||||
| tr -s '[:space:]' '\n' \
|
| tr -s '[:space:]' '\n' \
|
||||||
@@ -17,9 +17,21 @@ list_projects() {
|
|||||||
|| true
|
|| true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list_developer_dirs() {
|
||||||
|
find ~/Developer -mindepth 1 -maxdepth 1 -type d -exec basename {} \; 2>/dev/null \
|
||||||
|
|| true
|
||||||
|
}
|
||||||
|
|
||||||
|
list_projects() {
|
||||||
|
{
|
||||||
|
list_tmuxinator_projects
|
||||||
|
list_developer_dirs
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# unique + sorted
|
# unique + sorted
|
||||||
items="$(list_projects | sort -u)"
|
items="$(list_projects | sort -u)"
|
||||||
[ -n "$items" ] || die "No tmuxinator projects found."
|
[ -n "$items" ] || die "No projects found."
|
||||||
|
|
||||||
sel="$(
|
sel="$(
|
||||||
printf '%s\n' "$items" | fzf \
|
printf '%s\n' "$items" | fzf \
|
||||||
@@ -37,18 +49,37 @@ choice="$(printf '%s\n' "$sel" | sed -n '3p')"
|
|||||||
project="${choice:-$query}"
|
project="${choice:-$query}"
|
||||||
[ -n "$project" ] || exit 0
|
[ -n "$project" ] || exit 0
|
||||||
|
|
||||||
if [ "$project" = "vrm-deploy" ] && tmux has-session -t vrm-deploy 2>/dev/null; then
|
# Check if it's a tmuxinator project
|
||||||
current_session=$(tmux display-message -p '#S' 2>/dev/null)
|
tmuxinator_projects="$(list_tmuxinator_projects)"
|
||||||
if [ "$current_session" = "vrm-deploy" ]; then
|
is_tmuxinator=false
|
||||||
tmux rename-session -t vrm-deploy vrm-deploy-old
|
if echo "$tmuxinator_projects" | grep -qxF "$project"; then
|
||||||
tmuxinator start vrm-deploy
|
is_tmuxinator=true
|
||||||
tmux kill-session -t vrm-deploy-old 2>/dev/null
|
fi
|
||||||
exit 0
|
|
||||||
else
|
# Check if it's a ~/Developer directory
|
||||||
tmux kill-session -t vrm-deploy 2>/dev/null
|
developer_dir="$HOME/Developer/$project"
|
||||||
fi
|
is_developer_dir=false
|
||||||
|
if [ -d "$developer_dir" ]; then
|
||||||
|
is_developer_dir=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$is_tmuxinator" = true ]; then
|
||||||
|
tmuxinator start "$project"
|
||||||
|
elif [ "$is_developer_dir" = true ]; then
|
||||||
|
# Handle ~/Developer directory - create tmuxinator config if needed
|
||||||
|
session_name="$project"
|
||||||
|
tmuxinator_config="$HOME/.config/tmuxinator/${session_name}.yml"
|
||||||
|
|
||||||
|
if [ ! -f "$tmuxinator_config" ]; then
|
||||||
|
cp ~/.config/tmuxinator/template.yml.temp "$tmuxinator_config"
|
||||||
|
sed -i '' "s|{{\$PROJECT_NAME}}|$session_name|g" "$tmuxinator_config"
|
||||||
|
sed -i '' "s|{{\$PROJECT_ROOT}}|$developer_dir|g" "$tmuxinator_config"
|
||||||
|
fi
|
||||||
|
|
||||||
|
tmuxinator start "$session_name"
|
||||||
|
else
|
||||||
|
die "Project '$project' not found in tmuxinator or ~/Developer"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tmuxinator start "$project"
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|||||||
Submodule tmux/plugins/tmux-fzf deleted from 1547f18083
Submodule tmux/plugins/tmux-sessionx updated: c2eb0e19bf...fe704934f8
Submodule tmux/plugins/tmux-which-key updated: 545831eb95...1f419775ca
Submodule tmux/plugins/vim-tmux-navigator updated: 791dacfcfc...e41c431a0c
Reference in New Issue
Block a user