-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc_ubuntu
35 lines (26 loc) · 1.02 KB
/
.zshrc_ubuntu
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
export COLORTERM=truecolor
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
export PATH="$HOME/.nodenv/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(nodenv init -)"
eval "$(rbenv init - zsh)"
# Use bundle install --binstubs, so in a rails project the bin/ directory will be in my PATH
# https://twitter.com/tpope/status/165631968996900865
export PATH=".git/safe/../../bin:$PATH"
export PATH="$HOME/bin:$PATH"
# Remove WSL2 windows directories
export PATH=$(echo $PATH | tr ':' '\n' | grep -v "/mnt/c/Windows" | tr '\n' ':')
export EDITOR=vim
alias br='bin/rails'
alias be='bundle exec'
alias dc='docker-compose'
# In windows terminal, open new tabs in same directory
# https://github.com/microsoft/terminal/issues/3158
# only works if I use it on command line
# eval "$(printf "\e]9;9;%s\e\\" $(wslpath -m $PWD))"
/usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa
source $HOME/.keychain/$HOST-sh