diff --git a/install/install.sh b/install/install.sh index 9779dce..1b66de8 100755 --- a/install/install.sh +++ b/install/install.sh @@ -46,6 +46,7 @@ logger() { create_symlinks() { logger "Setting shortcuts for dotfiles" mkdir -p ~/.config/yamllint + mkdir -p ~/.config/lazygit mkdir -p ~/.newsboat mkdir -p ~/.vagrant.d ln -sf ~/dotfiles/git/gitconfig ~/.gitconfig @@ -61,6 +62,8 @@ create_symlinks() { ln -sf ~/dotfiles/postgresql/psqlrc ~/.psqlrc ln -sf ~/dotfiles/prettier/.prettierrc ~/.prettierrc ln -sf ~/dotfiles/colima/colima.yaml ~/.colima/default/colima.yaml + # lazygit reads $XDG_CONFIG_HOME, which zshrc sets to ~/.config + ln -sf ~/dotfiles/lazygit/config.yml ~/.config/lazygit/config.yml mkdir -p ~/.cursor ln -sfn ~/dotfiles/ai/rules ~/.cursor/rules ln -sfn ~/dotfiles/ai/skills ~/.cursor/skills diff --git a/lazygit/config.yml b/lazygit/config.yml index bc976b8..c20b672 100644 --- a/lazygit/config.yml +++ b/lazygit/config.yml @@ -1,9 +1,10 @@ --- # From https://github.com/jesseduffield/lazygit/issues/41 +# Messages follow git-cz: (): customCommands: - key: "C" - command: 'git commit -m "{{ .Form.Type }}{{if .Form.Scopes}}({{ .Form.Scopes }}){{end}}: {{ .Form.Description }}"' + command: 'git commit -m "{{ .Form.Type }}{{if .Form.Scopes}}({{ .Form.Scopes }}){{end}}: {{if eq .Form.Type "feat"}}🎸{{else if eq .Form.Type "fix"}}🐛{{else if eq .Form.Type "docs"}}✏️{{else if eq .Form.Type "style"}}💄{{else if eq .Form.Type "refactor"}}💡{{else if eq .Form.Type "perf"}}⚡️{{else if eq .Form.Type "test"}}💍{{else if eq .Form.Type "ci"}}🎡{{else if eq .Form.Type "chore"}}🤖{{end}} {{ .Form.Description }}"' description: "commit with commitizen" context: "files" prompts: @@ -32,18 +33,12 @@ customCommands: - name: "Tests" description: "Adding missing tests or correcting existing tests" value: "test" - - name: "Builds" - description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)" - value: "build" - name: "Continuous Integration" description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)" value: "ci" - name: "Chores" description: "Other changes that don't modify src or test files" value: "chore" - - name: "Reverts" - description: "Reverts a previous commit" - value: "revert" - type: "input" title: "Enter the scope(s) of this change." key: "Scopes"