My tips and tricks presentation for unix day at DEIUC, Coimbra
Pimp my terminalA tale of how I reached satisfactory console karma
View Slide
$ whoami• Software engineer• /home/dei2001/mmachado• sciencematters.io• Previously 9y @IPNlis• g ‘miguel laginha’
| Summary• Premisses• Terminal vs iTerm2• Bash vs Zsh vs fish shell• Pimpin' time• Tips and tricks
Why are $(we) here?
“terminal”indeed.com job trends
“cloooouuuuud”indeed.com job trends
“PaaS”indeed.com job trends
“docker”indeed.com job trends
Which terminal appto use?
Which shell?ps -o comm $$
Shell options$ Bash # default$ Zsh # awesome$ Fish shell # so awesome it hurts
Let’s start pimpin’#copypaste
# first and foremost$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# plus.. homebrew-cask!$ brew install caskroom/cask/brew-cask
# use homebrew to install zsh$ brew install zsh$ chsh -s `which zsh`$ vim ~/.zshrc # hack away
# install oh my zsh$ curl -L http://install.ohmyz.sh | sh$ vim ~/.zshrc # hack away
# Zsh syntax highlighting$ cd ~/.oh-my-zsh && git clone git://github.com/zsh-users/zsh-syntax-highlighting.git$ source ~/.oh-my-zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Z$ brew install z$ . `brew —prefix`/etc/profile.d/z.sh #outdated! Z is now a oh-my-zsh plugin
# Power vim with plugins$ curl -L https://bit.ly/janus-bootstrap |bash
# Pimp iTerm2$ wget https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/iTerm2/Tomorrow%20Night.itermcolors
Tips and tricks #mac
$ open .
$ cat .zshrc | pbcopy$ pbpaste >> .zshrc_backup
$ mdfind -onlyin ~/Documentsreport
$ say “This is probably useless”$ brew update && brew upgrade && say“finished brewing”
What else? #coolstuff
# curl.iohttps://curl.io# do it livehttp://doitlive.readthedocs.org/en/latest/# ascii cinemahttps://asciinema.org
«Never settle»Productivity matters.
$ Thank you_ @brecke