Skip to content

Instantly share code, notes, and snippets.

@remexre
Created May 17, 2017 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remexre/a0538cf9f27b556e91ba88a1cce9cfbf to your computer and use it in GitHub Desktop.
Save remexre/a0538cf9f27b556e91ba88a1cce9cfbf to your computer and use it in GitHub Desktop.
So You're Spending Your Summer In The CLI -- macOS Edition

So You're Spending Your Summer In The CLI -- macOS Edition

The Shell

zsh

zsh is the classic configurable shell. Its most notable configuration set is Oh My Zsh.

You can set it as the default for your user with:

chsh -s /bin/zsh

You can get my config with:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
curl -L https://gist.githubusercontent.com/remexre/323bdae66693fb81e2d8002ab0fc2a9a/raw/4b918bb3373d1079d48f7b2669d0fa8da63a527f/.zshrc -o ~/.zshrc

fish

fish is a shell that has a bunch of the above features installed by default. You can install it with:

brew install fish
echo "/usr/local/bin/fish" | sudo tee -a /etc/shells

After installing it, you can set it as the default for your user with:

chsh -s /usr/local/bin/fish

Your Editor

vim, or the one I like

To get syntax highlighting for Silver, cd to the Silver directory, then run:

cd support/vim
./install.sh # if you use vim
# or
./install-neovim.sh # if you use neovim

There's a vim tutorial built in with the vimtutor command. A highly condensed reference is available here, and you can also Google for materials.

There's also a Vi/Vim StackExchange.

To get my (IMO very nice) configuration (while deleting your existing one!), run:

# For vim
rm -rf ~/.vim{,rc}
git clone https://github.com/remexre/vimrc.git ~/.vim
~/.vim/install-vim.sh

# For neovim
rm -rf ~/.config/nvim
git clone https://github.com/remexre/vimrc.git ~/.config/nvim
~/.config/nvim/install-neovim.sh

A color scheme designer is available here.

Also, try cVim for Chrome and Vivaldi!

emacs, the Other One

If you want to configure emacs, ask Eric or Google; I don't use it, so I don't know much about what's available.

Miscellanea

Get Slack on your phone!

Learn You A Haskell teaches functional programming in a lazy setting pretty well. We use similar naming conventions to Haskell, so this can also help you "unlearn" e.g. List.fold_right from 2041.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment