-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
66 lines (50 loc) · 2.19 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# If you come from bash you might have to change your $PATH. export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
autoload -Uz compinit
# Set name of the theme to load --- if set to "random", it will load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
# ZSH_THEME="random"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git node npm gpg-agent tmux)
source $ZSH/oh-my-zsh.sh
# User configuration
bindkey -v
export VISUAL=nvim
export EDITOR="$VISUAL"
# Aliases
source ~/.shell/aliases.sh
alias vim="env TERM=wezterm nvim --listen /tmp/nvim_instance_$(echo $$).sock"
alias cd="z"
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi
export PATH="${PATH}:${HOME}/.local/bin/"
if [ -e $HOME/.local/bin/flutter/bin/flutter ]; then export PATH="${PATH}:${HOME}/.local/bin/flutter/bin/"; fi
export PATH=~/.dotfiles/bin:${PATH}
# Modifications for go lang with homebrew
# INFO: remove if not using go via homebrew
export GOROOT="$(brew --prefix golang)/libexec"
export PATH=${PATH}:${HOME}/go/bin
# nvm use default
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# Change the config path for Lazygit
export XDG_CONFIG_HOME="$HOME/.config"
export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS'
--pointer=" "
--prompt=" "
--color=fg:8,bg:-1,hl:2
--color=fg+:-1,bg+:-1,hl+:4
--color=info:8,prompt:2,pointer:2
--color=marker:#87ff00,spinner:#af5fff,header:8'
# Load zoxide
eval "$(zoxide init zsh)"
# Load the starship theme
eval "$(starship init zsh)"