瀏覽代碼

Configure shell and Git settings for improved functionality.

Tom McKenzie 6 月之前
父節點
當前提交
0a2b2ede7a
共有 5 個文件被更改,包括 9 次插入3 次删除
  1. 2 0
      .bashrc
  2. 1 1
      .gitconfig
  3. 3 0
      .rc.d/aliases.sh
  4. 0 1
      .rc.d/git.sh
  5. 3 1
      .zshrc

+ 2 - 0
.bashrc

@@ -25,3 +25,5 @@ PS1="\[\e[1;32m\]\h:\W \u$\[\e[0m\] "
 # better back-searching
 bind '"\e[A": history-search-backward'
 bind '"\e[B": history-search-forward'
+
+. "$HOME/.cargo/env"

+ 1 - 1
.gitconfig

@@ -49,7 +49,7 @@
 	excludesfile = /Users/tom/.gitignore_global
 	whitespace = tab-in-indent,trailing-space,space-before-tab
 	ignorecase = false
-	editor = vim -c 'startinsert'
+# editor = vim -c 'startinsert'
 
 [push]
 	default = upstream

+ 3 - 0
.rc.d/aliases.sh

@@ -84,5 +84,8 @@ checkout() {
   cd "$HOME/repos/$DIR" || return
 }
 
+# alias ac="aider --commit --model openrouter/meta-llama/llama-4-maverick:free"
+alias ac="git diff | llm -m openrouter/meta-llama/llama-4-maverick:free -s 'Write a concise, imperative-mood git commit message summarizing these changes.' | git commit -a -F -"
+
 alias pbjson="pbpaste | jq -r"
 alias pbjsons="pbpaste | jq -sRr '@json'"

+ 0 - 1
.rc.d/git.sh

@@ -62,7 +62,6 @@ alias gsb='git status -sb'
 alias gsd='git svn dcommit'
 alias gsi='git submodule init'
 alias gsps='git show --pretty=short --show-signature'
-alias gsr='git svn rebase'
 alias gss='git status -s'
 alias gst='git status'
 alias gsta='git stash save'

+ 3 - 1
.zshrc

@@ -21,7 +21,7 @@ fi
 if [[ -n $SSH_CONNECTION ]]; then
   export EDITOR='vim'
 else
-  export EDITOR='zed'
+  export EDITOR='zed --wait'
 fi
 
 # The next line updates PATH for the Google Cloud SDK.
@@ -41,3 +41,5 @@ export PATH="$BUN_INSTALL/bin:$PATH"
 
 # zoxide
 if command -v zoxide >/dev/null 2>&1; then eval "$(zoxide init zsh)"; fi
+
+. "$HOME/.cargo/env"