- Install fish via Brew
- Optionally install Oh My Fish!
- Add fish to known shells
- Set default shell to fish
brew install fish
curl -L https://get.oh-my.fish | fish| " Vundle config | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') |
| # ZSH history | |
| setopt append_history | |
| setopt hist_expire_dups_first | |
| setopt hist_fcntl_lock | |
| setopt hist_ignore_all_dups | |
| setopt hist_lex_words | |
| setopt hist_reduce_blanks | |
| setopt hist_save_no_dups | |
| setopt share_history | |
| unsetopt menu_complete # do not autoselect the first completion entry |
| Format: YYYY-MM-DDTHH:mm:ss.sssZ | |
| Date: ^\d{4}(-\d{2}){0,2}$ | |
| Time: ^\d{2}(:\d{2}(:\d{2}(\.\d+)?)?)?$ | |
| Time with optional timezone: ^\d{2}(:\d{2}(:\d{2}(\.\d+)?)?)?(Z|[\+|-]\d{2}:\d{2})?$ | |
| Date and/or time with optional timezone: | |
| (^\d{4}(-\d{2}){0,2})?((^|T)\d{2}(:\d{2}(:\d{2}(\.\d+)?)?)?(Z|[\+|-]\d{2}:\d{2})?)?$ | |
brew install fish
curl -L https://get.oh-my.fish | fish| # | |
| # Sets Prezto options. | |
| # | |
| # Authors: | |
| # Sorin Ionescu <[email protected]> | |
| # | |
| # | |
| # General | |
| # |
Click here to play Python Challenge
If you cannot solve this one, please stop reading right now.
| function condalist -d 'List conda environments.' | |
| for dir in (ls $HOME/miniconda3/envs) | |
| echo $dir | |
| end | |
| end | |
| function condactivate -d 'Activate a conda environment' -a cenv | |
| if test -z $cenv | |
| echo 'Usage: condactivate <env name>' | |
| return 1 |
| # set prefix to control-f | |
| set -g prefix C-f | |
| #unbind system defined prefix | |
| unbind C-b | |
| # helps in faster key repetition | |
| set -sg escape-time 0 | |
| # start session number from 1 rather than 0 |