diff options
| author | Simen A. W. Olsen <hello@simenandre.no> | 2025-08-23 10:34:55 +0200 |
|---|---|---|
| committer | Simen A. W. Olsen <hello@simenandre.no> | 2025-08-23 10:34:55 +0200 |
| commit | eb7c55e9dc97524cca7c5b6a268cd66af147b12e (patch) | |
| tree | 42b6b1a063547f4cc82530b76f46bd7811c9f027 /zsh | |
| parent | 04673a4d56f05ff14b32941ae37e6261e1ada777 (diff) | |
| download | dotfiles-eb7c55e9dc97524cca7c5b6a268cd66af147b12e.tar.gz dotfiles-eb7c55e9dc97524cca7c5b6a268cd66af147b12e.zip | |
feat: improve shell experience with vi-mode
Diffstat (limited to 'zsh')
| -rwxr-xr-x | zsh/.config/zsh/.zshrc | 4 | ||||
| -rwxr-xr-x | zsh/.config/zsh/extras | 9 | ||||
| -rwxr-xr-x | zsh/.config/zsh/path | 3 |
3 files changed, 15 insertions, 1 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 4f289da..ead1f79 100755 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -3,7 +3,6 @@ # https://github.com/koalaman/shellcheck/issues/809 # shellcheck disable=SC1090 # sourced filenames with variables - # Download Znap, if it's not there yet. [[ -r ~/.zsh_repos/znap/znap.zsh ]] || git clone --depth 1 -- \ @@ -15,6 +14,7 @@ znap prompt znap source marlonrichert/zsh-autocomplete znap source zsh-users/zsh-autosuggestions +znap source jeffreytse/zsh-vi-mode for file in ~/.config/zsh/{aliases,path,extras}; do if [[ -r "$file" ]] && [[ -f "$file" ]]; then @@ -24,3 +24,5 @@ for file in ~/.config/zsh/{aliases,path,extras}; do done eval "$(twm --print-zsh-completion)" + +bindkey '^I^I' autosuggest-accept diff --git a/zsh/.config/zsh/extras b/zsh/.config/zsh/extras index 0647ca0..e3f9ef4 100755 --- a/zsh/.config/zsh/extras +++ b/zsh/.config/zsh/extras @@ -25,4 +25,13 @@ function getBjerkIssues() { --jq 'map({url, createdAt, title, labels: [.labels[].name], assignees: [.assignees[].login], body, number: "#\(.number)", comments: .comments | map({ body: .body, createdAt: .createdAt })})' } +function g() { + # export GEMINI_API_KEY="$(op read op://Employee/Google_Gemini_API/api_key)" + export GOOGLE_CLOUD_PROJECT="sokkel-sandbox" + export GOOGLE_CLOUD_LOCATION="europe-north1" + export GOOGLE_GENAI_USE_VERTEXAI=true + + gemini +} + diff --git a/zsh/.config/zsh/path b/zsh/.config/zsh/path index b568791..ad2009f 100755 --- a/zsh/.config/zsh/path +++ b/zsh/.config/zsh/path @@ -7,9 +7,12 @@ add_to_path() { fi } +GOPATH="$HOME/go" + # Add ghq to PATH add_to_path "$HOME/.volta/bin" add_to_path "$GOPATH/bin" add_to_path "/Library/Frameworks/Firebird.framework/Resources/bin" add_to_path "/opt/homebrew/opt/libpq/bin" +add_to_path "$HOME/ghq/github.com/simenandre/dotfiles/scripts" |
