Bash vs Zsh -- It's time to switch

2 Likes

Hey @minions,

Here’s my .zshrc in it’s continuously evolving stage:

# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
bindkey -v # vim mode key bindings
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/mrjn/.zshrc'

export TERM="xterm-256color"

autoload -Uz compinit promptinit
compinit
promptinit
# End of lines added by compinstall

prompt walters
setopt HIST_IGNORE_DUPS
setopt correct

source /usr/share/zsh/scripts/antigen/antigen.zsh

antigen bundle zsh-users/zsh-syntax-highlighting
# antigen bundle robbyrussell/oh-my-zsh
antigen bundle git
antigen use oh-my-zsh
antigen theme https://github.com/caiogondim/bullet-train-oh-my-zsh-theme bullet-train
antigen bundle command-not-found
antigen bundle archlinux
antigen bundle sudo
antigen apply

# Aliases from bashrc
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -al --color=auto'
alias c='clear'

alias -g d='~/go/src/github.com/dgraph-io/dgraph'
alias -g dt='~/dotfiles'
alias -g dg='~/go/src/github.com/dgraph-io'
alias -g p='~/go/src/github.com/dgraph-io/tools/trello/perf'
alias -g b='~/blog'

alias wifiscan='sudo iw dev wlp4s0 scan | grep -i ssid -A1 -B6'

export GOPATH=$HOME/go
export LD_LIBRARY_PATH="/usr/local/lib"
export VISUAL="vim"
export EDITOR='vim'

path=("$GOPATH/bin" "$HOME/.gem/ruby/2.3.0/bin" $path)
export PATH

# Ensure gpg-agent starts
if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
  gpg-connect-agent /bye >/dev/null 2>&1
fi

# trello_cli (gem install trello_cli)
export TRELLO_DEVELOPER_PUBLIC_KEY=public-key
export TRELLO_MEMBER_TOKEN=member-token

alias trello-create-company='trello card create -b 570a0303a19a7f47b32502e2 -l 57106d7876ee590717c9cd3c'
alias trello-create-learning='trello card create -b 5725db686d01d4a5f69e64f9 -l 5725db6d34077f16dbad0836'
alias -g m='-m mrjn'
alias -g a='-m ashwin95r'
alias -g pa='-m pawanrawal2'
alias -g k='-m koppula'
2 Likes

Set it up. zsh is super cool.

Also got https://github.com/rupa/z. z is kind of an alternative to cd. It keeps a weighted average score of the directories you cd into. Then you could use say do z perf or z gru to head into those directories from anywhere.

2 Likes

z looks super cool. Will give it a try!

1 Like