Rbenv/n etc

main
Steffen Rademacker 6 years ago
parent 59d7d29269
commit 550e81ba9b

@ -1,8 +1,5 @@
#!/usr/bin/env zsh
nvm install 8.11.3
nvm use 8.11.3
nvm alias default 8.11.3
curl -L https://git.io/n-install | bash
npm install -g npm@latest
npm update -g

@ -35,7 +35,7 @@ alias l='ls -alGp'
# mutt
alias m='neomutt'
# alias for syncing everything
alias office="clear && mbsync -a && mu index --maildir ~/Mail && vdirsyncer sync && khal"
alias office="cd ~ && clear && mbsync -a && mu index --maildir ~/Mail && vdirsyncer sync && khal"
# Gitty gitgit
alias g="git"
@ -64,6 +64,7 @@ alias ns="npm start"
alias nb="npm run build"
alias np="npm run production"
alias npmre='rm -f package-lock.json && rm -rf node_modules && npm install'
alias yre='rm -f yarn.lock && rm -rf node_modules && yarn'
# easy hosts / apache / php editing
alias hosts='sudo $EDITOR /etc/hosts'

@ -2,6 +2,13 @@
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# nice dircolors for ls
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# n — node version manager
export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin" # Added by n-install (see http://git.io/n-install-repo).
# shell
export SHELL=/usr/local/bin/zsh
@ -13,12 +20,6 @@ export PATH=$HOME/.composer/vendor/bin:$PATH
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export MANPATH=/usr/local/share/man:$MANPATH
# rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
# zsh-completions
fpath=($HOME/dotfiles/zsh/zsh-completions/src $fpath)
# disable stupid ._ and dsstore files
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export COPYFILE_DISABLE=true

@ -58,16 +58,8 @@ setopt long_list_jobs
source $HOME/dotfiles/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $HOME/dotfiles/zsh/zsh-completions/zsh-completions.plugin.zsh
# nice dircolors for ls
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# rbenv
eval "$(rbenv init -)"
# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# zsh-completions
fpath=($HOME/dotfiles/zsh/zsh-completions/src $fpath)

Loading…
Cancel
Save