dotfiles/config/zshrc

40 lines
1.1 KiB
Bash
Raw Normal View History

2019-05-05 19:24:14 +02:00
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.dotfiles/oh-my-zsh
export DOTFILES=$HOME/.dotfiles
export PATH=$HOME/.local/bin:$PATH
2019-05-06 11:21:06 +02:00
export NVM_DIR=$HOME/.dotfiles/nvm
2019-05-05 19:24:14 +02:00
# 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/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bureau"
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
2019-05-06 11:21:06 +02:00
plugins=(z nvm)
2019-05-05 19:24:14 +02:00
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='atom'
fi
2019-05-05 23:24:48 +02:00
if [[ -d $HOME/.cargo ]]; then
source $HOME/.cargo/env
fi
2019-05-06 11:21:06 +02:00
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm
2019-05-05 19:24:14 +02:00
source $ZSH/oh-my-zsh.sh
alias r="source ~/.zshrc"
alias up="sudo apt update"
alias i="sudo apt install"
alias trz="trezor-agent"
2019-05-05 22:50:37 +02:00
alias gs="git status"
alias phx="iex -S mix phx.server"