Skip to content

Commit

Permalink
Clean up zsh config
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenperera committed May 1, 2020
1 parent 85d5d51 commit b6cc23e
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions zshrc
@@ -1,9 +1,4 @@
#Path to your oh-my-zsh configuration.
alias pp='cd && cd sites/praveenperera'
alias cpubex='cd && cd code/public/Elixir'
alias cpubr='cd && cd code/public/ruby'
alias cpriv='cd && cd code/private'
alias docs='cd && cd sites/doctors_of_srilanka'
alias zreload2=exec zsh
alias zreload='source ~/.zshrc'
alias ip="ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'"
Expand All @@ -22,6 +17,8 @@ alias rex="evcxr"

eval "$(starship init zsh)"
eval $(thefuck --alias)
eval "$(direnv hook zsh)"
source <(navi widget zsh)

yarn_in_phoenix() {
if [ ! -f package.json ] && [ -f mix.exs ]; then
Expand Down Expand Up @@ -61,11 +58,6 @@ kill_port(){
fi
}

alias e2h=eex2haml
eex2haml(){
REPLACE_WITH="haml"
}

alias epi=elm-package-install
elm-package-install(){
elm-package install -y $1
Expand Down Expand Up @@ -116,7 +108,6 @@ function kmerge() {
### Git Alias
alias gcm="git commit -a -S -m $1"


# Setup path for imagemagick 6
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"

Expand All @@ -132,20 +123,10 @@ export EDITOR="code -w"
export ALTERNATE_EDITOR=vim
export VISUAL="code -w"
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"

export PATH="/usr/local/sbin:$PATH"

TERM=xterm-256color

## Add direnv
eval "$(direnv hook zsh)"
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"

. /Users/praveen/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
export PATH="/usr/local/opt/mysql@5.5/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"


export ANT_HOME=/usr/local/opt/ant
export MAVEN_HOME=/usr/local/opt/maven
export GRADLE_HOME=/usr/local/opt/gradle
Expand All @@ -170,12 +151,13 @@ export PATH=$PATH:~/Library/Python/3.7/bin
[ -f /Users/praveen/.travis/travis.sh ] && source /Users/praveen/.travis/travis.sh
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"

# rbenv :(
eval "$(rbenv init -)"

#added by iterm2 v3
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"

. $HOME/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true

TERM=xterm-256color

#kubectl autocompletions
if [ $commands[kubectl] ]; then
autoload -U +X compinit && compinit
Expand Down Expand Up @@ -206,5 +188,3 @@ setopt HIST_BEEP

# enable sccache for rust projects
export RUSTC_WRAPPER=sccache

source <(navi widget zsh)

0 comments on commit b6cc23e

Please sign in to comment.