NOTE: this gist is outdated, refer to this repository instead - https://github.com/ghaiklor/iterm-fish-fisher-osx
- Download and install iTerm2 (it has better color fidelity than the built in Terminal).
| # curl -Lk https://gist.githubusercontent.com/prabirshrestha/279d8b179d9353fe8694/raw/.bash_profile -o ~/.bash_profile | |
| [[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh # This loads NVM | |
| export PATH="$HOME/.cargo/bin:$HOME/go/bin:$HOME/Library/Python/3.7/bin:$PATH" | |
| export PATH="$HOME/.config/nvim/plugins/vim-themis/bin:$PATH" | |
| stty -ixon | |
| alias pbcopy='xsel --clipboard --input' | |
| alias pbpaste='xsel --clipboard --output' |
| javascript: (function() { | |
| var root = $(document.getElementsByTagName('html')); | |
| var watchers = []; | |
| var attributes = []; | |
| var attributes_with_values = []; | |
| var elements = []; | |
| var elements_per_attr = []; | |
| var scopes = []; |
| app.directive('inputMaxlength', function() { | |
| return { | |
| require: 'ngModel', | |
| link: function (scope, element, attrs, ngModelCtrl) { | |
| var maxlength = Number(attrs.inputMaxlength); | |
| function fromUser(text) { | |
| if (text.length > maxlength) { | |
| var transformedInput = text.substring(0, maxlength); | |
| ngModelCtrl.$setViewValue(transformedInput); | |
| ngModelCtrl.$render(); |
| " _____ __ __ _____ __________ _ ___ __ _ | |
| " / ____| \/ |_ _|___ / __ \| \ | \ \ / / (_) | |
| " | | | \ / | | | / / | | | \| |\ \_/ / ______ __ ___ _ __ ___ _ __ ___ | |
| " | | | |\/| | | | / /| | | | . ` | \ / |______| \ \ / / | '_ ` _ \| '__/ __| | |
| " | |____| | | |_| |_ / /_| |__| | |\ | | | \ V /| | | | | | | | | (__ | |
| " \_____|_| |_|_____/_____\____/|_| \_| |_| \_/ |_|_| |_| |_|_| \___| | |
| " | |
| " | |
| " 1. Easy navigation in .vimrc: | |
| " Use <Leader>ig to view indentation guides |
NOTE: this gist is outdated, refer to this repository instead - https://github.com/ghaiklor/iterm-fish-fisher-osx
| 320 | |
| 321 | |
| 322 | |
| 323 | |
| 324 | |
| 325 | |
| 326 | |
| 327 | |
| 328 | |
| 329 |
| namespace Analogy | |
| { | |
| /// <summary> | |
| /// This example shows that a library that needs access to target .NET Standard 1.3 | |
| /// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
| /// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
| /// </summary>INetCoreApp10 | |
| class Example1 | |
| { | |
| public void Net45Application(INetFramework45 platform) |
| " call plug#begin() | |
| " Make sure you use single quotes | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| "VIM customizations | |
| " General Config { |
Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.
I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your o
| Font=DejaVuSansMonoForPowerline NF | |
| BoldAsFont=no | |
| FontHeight=12 | |
| FontWeight=400 | |
| FontSmoothing=full | |
| Locale=C | |
| Charset=UTF-8 | |
| Term=xterm-256color | |
| ForegroundColour=248,248,242 | |
| BackgroundColour=40,42,54 |