mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-18 01:29:06 +00:00
fix: bugs
This commit is contained in:
@@ -15,7 +15,7 @@ autocmd("BufWinEnter", {
|
||||
local bufnr = vim.api.nvim_get_current_buf()
|
||||
local opts = { buffer = bufnr, remap = false }
|
||||
-- print("great success", vim.bo.ft, bufnr, vim.inspect(opts))
|
||||
vim.keymap.set("n", "gp", "]]k", opts)
|
||||
-- vim.keymap.set("n", "gp", "]]k", opts)
|
||||
|
||||
-- rebase always
|
||||
vim.keymap.set("n", "<leader>gl", function()
|
||||
@@ -31,13 +31,9 @@ autocmd("BufWinEnter", {
|
||||
local current_branch = vim.fn.FugitiveHead()
|
||||
|
||||
local cmd = ":Git push -u origin " .. current_branch
|
||||
|
||||
-- vim.fn.inputsave()
|
||||
-- vim.fn.input(cmd)
|
||||
-- vim.fn.inputrestoRe()
|
||||
|
||||
-- prefill input line
|
||||
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(cmd, true, true, true), "n", true)
|
||||
end, opts);
|
||||
|
||||
vim.keymap.set("n", "<leader>gf", ":Git fetch<CR>", opts)
|
||||
end,
|
||||
})
|
||||
|
||||
@@ -51,9 +51,10 @@ home() {
|
||||
m | mushclient)
|
||||
shift
|
||||
sub="$1"
|
||||
mushdir="$HOME/Library/Application Support/CrossOver/Bottles/MushClient/drive_c/users/crossover/MUSHclient"
|
||||
case $sub in
|
||||
backup | b)
|
||||
rsync -vtr "$HOME/Library/Application Support/CrossOver/Bottles/MushClient/drive_c/users/crossover/MUSHclient" "$DOTFILES/synced/"
|
||||
rsync -vtr "$mushdir" "$DOTFILES/synced/"
|
||||
echo_yellow "Copied Mushclient profile to synced folder."
|
||||
git -C "$DOTFILES" add "$DOTFILES/synced/MUSHclient"
|
||||
git -C "$DOTFILES" commit -m "backup: mushclient"
|
||||
@@ -61,7 +62,7 @@ home() {
|
||||
echo_yellow "Backup complete."
|
||||
;;
|
||||
restore | r)
|
||||
rsync -vtr "$DOTFILES/synced/MUSHclient" "$HOME/Library/Application Support/CrossOver/Bottles/MushClient/drive_c/users/crossover/"
|
||||
rsync -vtr "$DOTFILES/synced/MUSHclient/" "$mushdir/"
|
||||
echo_yellow "Restored Mushclient profile from synced folder."
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user