aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rwxr-xr-xzsh/.config/zsh/.zshrc4
-rwxr-xr-xzsh/.config/zsh/extras9
-rwxr-xr-xzsh/.config/zsh/path3
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"