diff --git a/zshrc b/zshrc index 51efd2f..08e0bfc 100755 --- a/zshrc +++ b/zshrc @@ -42,6 +42,12 @@ alias fzv='vim $(fzf --preview "bat --color=always --style=numbers --line-range= alias fgb='git branch | fzf | xargs git checkout' alias fgl='git log --oneline | fzf --preview "git show --color=always {1}" | awk "{print \$1}" | xargs git show' +# Emacs client aliases (connect to daemon with graphical frame by default) +alias ec='/usr/local/bin/emacsclient -cn' +alias et='/usr/local/bin/emacsclient -t' +export EDITOR='/usr/local/bin/emacsclient -t' +export VISUAL='/usr/local/bin/emacsclient -c' + # Tmux session switcher with fzf fts() { local session @@ -148,3 +154,6 @@ bindkey -M vicmd 'k' history-substring-search-up bindkey -M vicmd 'j' history-substring-search-down source /home/jenlue/.config/broot/launcher/bash/br + +# opencode +export PATH=/home/jenlue/.opencode/bin:$PATH