summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2024-11-08 02:36:04 +0100
committernavewindre <boneyaard@gmail.com>2024-11-08 02:36:04 +0100
commit089488fca436b7df44b33784cdb0343b01fc67ff (patch)
tree901137974e09ba9c098e1800c3cba18bbf195c40 /zshrc
parent94015ad4e62410e43a0307bef74f52e847f0571b (diff)
a
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc11
1 files changed, 7 insertions, 4 deletions
diff --git a/zshrc b/zshrc
index 65e29e3..1cb0850 100644
--- a/zshrc
+++ b/zshrc
@@ -1,7 +1,10 @@
source ~/.lscolors
source ~/.profile
+source <(fzf --zsh)
export PATH=$HOME/bin:/usr/local/bin:$HOME/.cargo/bin:$PATH
+fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
+
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="evan"
HYPHEN_INSENSITIVE="true"
@@ -10,13 +13,16 @@ HYPHEN_INSENSITIVE="true"
# zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
-
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
+ zsh-completions
+ fzf-tab
)
+source $ZSH/oh-my-zsh.sh
+
git_prompt() {
if git rev-parse --git-dir > /dev/null 2>&1; then
local branch=$(git symbolic-ref --short HEAD 2>/dev/null)
@@ -38,13 +44,10 @@ git_prompt() {
setopt PROMPT_SUBST
-source $ZSH/oh-my-zsh.sh
export PS1=$'%m :: %2~$(git_prompt) %B»%b '
-
# User configuration
autoload -Uz compinit && compinit
-autoload -Uz bashcompinit && bashcompinit
alias vim=nvim
alias vi=nvim
alias mpa="mpv --no-video"