Compare commits
6 Commits
572a7d84e4
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
3283ce0ed1
|
|||
|
d24dacb952
|
|||
|
07c630b2dd
|
|||
|
99ccdb3a64
|
|||
|
7a6f22adce
|
|||
|
6d552dc7e1
|
7
config_files/autostart/1password.desktop
Normal file
7
config_files/autostart/1password.desktop
Normal file
@@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=1Password
|
||||
Exec=/usr/bin/1password --silent
|
||||
Hidden=false
|
||||
NoDisplay=false
|
||||
X-GNOME-Autostart-enabled=true
|
||||
2
config_files/layzgit_config.yml
Normal file
2
config_files/layzgit_config.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
git:
|
||||
overrideGpg: true
|
||||
@@ -1,3 +1,38 @@
|
||||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
|
||||
vim.keymap.set("n", "<leader>gO", function()
|
||||
local git_root = vim.fn.systemlist("git rev-parse --show-toplevel")[1]
|
||||
if vim.v.shell_error ~= 0 or not git_root then
|
||||
vim.notify("Not in a git repository", vim.log.levels.WARN)
|
||||
return
|
||||
end
|
||||
local output = vim.fn.systemlist("git status --porcelain")
|
||||
local files = {}
|
||||
for _, line in ipairs(output) do
|
||||
if line ~= "" then
|
||||
local status = line:sub(1, 2)
|
||||
-- skip deleted files
|
||||
if not status:match("D") then
|
||||
local filepath = line:sub(4)
|
||||
-- handle renames: "old -> new"
|
||||
local arrow_pos = filepath:find(" -> ")
|
||||
if arrow_pos then
|
||||
filepath = filepath:sub(arrow_pos + 4)
|
||||
end
|
||||
if filepath ~= "" then
|
||||
table.insert(files, git_root .. "/" .. filepath)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if #files == 0 then
|
||||
vim.notify("No modified files found", vim.log.levels.INFO)
|
||||
return
|
||||
end
|
||||
for _, file in ipairs(files) do
|
||||
vim.cmd.edit(vim.fn.fnameescape(file))
|
||||
end
|
||||
vim.notify("Opened " .. #files .. " modified file(s)", vim.log.levels.INFO)
|
||||
end, { desc = "Open all git modified files" })
|
||||
|
||||
@@ -8,7 +8,7 @@ return {
|
||||
go = { "goimports", "gofumpt" },
|
||||
xml = { "lemminx" },
|
||||
ruby = { "standardrb" },
|
||||
json = { "biome", "json-lsp" },
|
||||
json = { "biome" },
|
||||
css = { "biome" },
|
||||
javascript = { "biome" },
|
||||
sql = { "pg_format" },
|
||||
|
||||
15
zsh/.zshrc
15
zsh/.zshrc
@@ -78,6 +78,10 @@ plugins=(
|
||||
)
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# Fix unreadable directory highlights on Windows mounts (/mnt)
|
||||
# NTFS dirs show as other-writable, default ow=34;42 adds green background
|
||||
export LS_COLORS="${LS_COLORS}:ow=1;34"
|
||||
|
||||
# User configuration
|
||||
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
@@ -115,3 +119,14 @@ export PATH="$GOBIN:/usr/local/go/bin:$PATH"
|
||||
export NVM_DIR="$HOME/workspace/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# fnm
|
||||
FNM_PATH="/home/daveanand/.local/share/fnm"
|
||||
if [ -d "$FNM_PATH" ]; then
|
||||
export PATH="$FNM_PATH:$PATH"
|
||||
eval "$(fnm env --shell zsh)"
|
||||
fi
|
||||
|
||||
#1pass
|
||||
# export SSH_AUTH_SOCK=~/.1password/agent.sock
|
||||
[[ -S ~/.1password/agent.sock ]] && export SSH_AUTH_SOCK=~/.1password/agent.sock
|
||||
|
||||
@@ -8,27 +8,39 @@ alias fd='fdfind'
|
||||
|
||||
alias sudo-shell='sudo -E zsh'
|
||||
|
||||
# [Development]
|
||||
# [Development] =======================================================================
|
||||
# conditional wezterm
|
||||
if grep -qEi "(Microsoft|WSL)" /proc/version &> /dev/null; then
|
||||
alias wezterm='/mnt/c/Users/DaveanandMannie/scoop/apps/wezterm/current/wezterm.exe'
|
||||
else
|
||||
alias wezterm='wezterm' # Or point to native binary if needed
|
||||
fi
|
||||
alias lg='lazygit'
|
||||
# [Odoo]
|
||||
alias erp-dev='cd ~/workspace/pg/erp/'
|
||||
alias erp-dev-server='erp-dev && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../odoo.conf --dev all'
|
||||
alias erp-dev-test='cd ~/workspace/pg/erp && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../test.conf -i accounting_td_edi,anb_img_zip_importation,auto_raw_procure,client_sku_mapping,contact_anonymization,invoice_line_grouper,pgk_dashboard,pgk_purchase,purchase_order_cost_approval,pricing_breakdown,stock_picking_batch_simple,roq_integration && dropdb --if-exists testdb'
|
||||
# [portal]
|
||||
alias erp-portal-server='erp-dev && source venvs/odoo17/bin/activate && cd odoo && python3 odoo-bin -c ../.portalrc --dev all'
|
||||
alias portal-dev='cd ~/workspace/pg/portal/'
|
||||
|
||||
# [portal]
|
||||
alias company-store='cd ~/workspace/pg/company_stores/'
|
||||
pgdb() {
|
||||
local dir="$HOME/workspace/docker/databases/"
|
||||
if [[ ! -d "$dir" ]]; then
|
||||
echo "\033[31mNot on work computer\033[0m"
|
||||
else
|
||||
cd "$dir"
|
||||
fi
|
||||
}
|
||||
|
||||
alias lg='lazygit'
|
||||
alias ..nvim="../ && nvim"
|
||||
|
||||
# [Claude Code]
|
||||
# [Odoo] =======================================================================
|
||||
alias erp-dev='cd ~/workspace/pg/erp/'
|
||||
alias erp-dev-server='erp-dev && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../odoo.conf --dev all'
|
||||
alias erp-dev-test='cd ~/workspace/pg/erp && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../test.conf -i accounting_td_edi,anb_img_zip_importation,auto_raw_procure,client_sku_mapping,contact_anonymization,invoice_line_grouper,pgk_dashboard,pgk_purchase,purchase_order_cost_approval,pricing_breakdown,stock_picking_batch_simple,roq_integration && dropdb --if-exists testdb'
|
||||
# [portal] =======================================================================
|
||||
alias erp-portal-server='erp-dev && source venvs/odoo17/bin/activate && cd odoo && python3 odoo-bin -c ../.portalrc --dev all'
|
||||
alias portal-dev='cd ~/workspace/pg/portal/'
|
||||
|
||||
# [solidus] =======================================================================
|
||||
alias company-store='cd ~/workspace/pg/company_stores/'
|
||||
alias company-stores='cd ~/workspace/pg/company_stores/'
|
||||
|
||||
|
||||
# [Claude Code] =======================================================================
|
||||
alias claude-clean='rm -f ~/.claude.json.backup*'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user