THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc| import numpy as np | |
| import matplotlib.pyplot as plt | |
| def fun(x): | |
| #This is where all the info on the function goes | |
| if x < 28: | |
| return 100000*x - 2721000 | |
| else: | |
| return 79000 |
| # snippet is placed into public domain by | |
| # anatoly techtonik <techtonik@gmail.com> | |
| # http://stackoverflow.com/questions/8151300/ignore-case-in-glob-on-linux | |
| import fnmatch | |
| import os | |
| import re | |
| def findfiles(which, where='.'): |
| #!/bin/bash | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| TMUX_VERSION=1.8 |
| # luna_pinyin.custom.yaml | |
| # save it to: | |
| # ~/.config/ibus/rime (linux) | |
| # ~/Library/Rime (macos) | |
| # %APPDATA%\Rime (windows) | |
| patch: | |
| "key_binder/bindings": | |
| - { when: paging, accept: bracketleft, send: Page_Up } | |
| - { when: has_menu, accept: bracketright, send: Page_Down } |
| # default.custom.yaml | |
| # save it to: | |
| # ~/.config/ibus/rime (linux) | |
| # ~/Library/Rime (macos) | |
| # %APPDATA%\Rime (windows) | |
| patch: | |
| schema_list: | |
| - schema: luna_pinyin # 朙月拼音 | |
| - schema: luna_pinyin_simp # 朙月拼音 简化字模式 |
| "statusline setup | |
| set statusline=%f "tail of the filename | |
| "display a warning if fileformat isnt unix | |
| set statusline+=%#warningmsg# | |
| set statusline+=%{&ff!='unix'?'['.&ff.']':''} | |
| set statusline+=%* | |
| "display a warning if file encoding isnt utf-8 | |
| set statusline+=%#warningmsg# |