|
29 | 29 | # $VIRTUAL_ENV (str): path to current $VIRTUAL_ENV |
30 | 30 | # |
31 | 31 | ## 07-bashrc.python.sh -- python |
32 | | - # _setup_anaconda() -- setup anaconda paths (manual) |
33 | 32 | # _setup_pyenv() -- setup pyenv paths (manual) |
| 33 | + # _setup_conda() -- setup conda paths (manual) |
34 | 34 | # |
35 | 35 | ## 07-bashrc.virtualenvwrapper.sh -- virtualenvwrapper |
| 36 | + # backup_virtualenv($VENVSTR) -- backup $WORKON_HOME/$VENVSTR -> ./-bkp/$VENVSTR |
| 37 | + # backup_virtualenvs() -- backup $WORKON_HOME/* -> ./-bkp/* |
| 38 | + # rebuild_virtualenv($VENVSTR) -- rebuild $WORKON_HOME/$VENVSTR |
| 39 | + # rebuild_virtualenvs() -- rebuild $WORKON_HOME/* |
| 40 | + # TODO: restore |
36 | 41 | # |
37 | 42 | ## 08-bashrc.gcloud.sh -- gcloud: Google Cloud SDK |
38 | 43 | # _setup_google_cloud() -- setup google cloud paths |
|
51 | 56 | ## 11-bashrc.venv.pyramid.sh -- venv-pyramid: pyramid-specific config |
52 | 57 | # |
53 | 58 | ## 20-bashrc.editor.sh -- $EDITOR configuration |
54 | | - # $_EDIT_ (str): cmdstring to open $@ (file list) in current editor |
55 | | - # $EDITOR (str): cmdstring to open $@ (file list) in current editor |
| 59 | + # $_EDIT_ (str): cmdstring to open $@ (file list) in current editor |
| 60 | + # $EDITOR_ (str): cmdstring to open $@ (file list) in current editor |
| 61 | + # |
56 | 62 | ## 20-bashrc.vimpagers.sh -- $PAGER configuration |
57 | | - # $PAGER (str): cmdstring to run pager (less/vim) |
| 63 | + # $PAGER (str): cmdstring to run pager (less/vim) |
| 64 | + # lessv() -- open in vim with less.vim |
| 65 | + # VIMPAGER_SYNTAX="python" lessv |
| 66 | + # lessg() -- open in a gvim with less.vim |
| 67 | + # VIMPAGER_SYNTAX="python" lessv |
| 68 | + # lesse() -- open with $EDITOR_ |
58 | 69 | # |
59 | 70 | ## 30-bashrc.usrlog.sh -- $_USRLOG configuration |
60 | 71 | # $_USRLOG (str): path to .usrlog command log |
|
147 | 158 | # debug-on() -- set -x -v |
148 | 159 | # debug-off() -- set +x +v |
149 | 160 | # log_dotfiles_state() -- save current environment to logfiles |
| 161 | + # XXX: |
| 162 | + # XXX: |
150 | 163 | # dotfiles_initialize() -- virtualenvwrapper initialize |
151 | 164 | # dotfiles_postmkvirtualenv -- virtualenvwrapper postmkvirtualenv |
152 | 165 | # dotfiles_preactivate() -- virtualenvwrapper preactivate |
|
169 | 182 | ## Pyenv |
170 | 183 | # _setup_pyvenv() -- set $PYENV_ROOT, add_to_path, and pyenv venvw |
171 | 184 | ## Conda / Anaconda |
172 | | - # _setup_anaconda() -- set $ANACONDA_ROOT, add_to_path |
| 185 | + # _setup_anaconda() -- set $CONDA_ROOT, add_to_path |
173 | 186 | # workon_conda() -- workon a conda + venv project |
174 | 187 | # wec() -- workon a conda + venv project |
175 | 188 | # note: tab-completion only shows regular virtualenvs |
176 | 189 | # mkvirtualenv_conda() -- mkvirtualenv and conda create |
177 | 190 | # rmvirtualenv_conda() -- rmvirtualenv conda |
178 | | - # TODO |
179 | 191 | # mkvirtualenv_conda_if_available() -- mkvirtualenv_conda OR mkvirtualenv |
180 | 192 | # workon_conda_if_available() -- workon_conda OR we OR workon |
181 | 193 |
|
|
190 | 202 | # backup_virtualenv() -- backup VIRTUAL_ENV_NAME $1 to [$2] |
191 | 203 | # backup_virtualenvs() -- backup all virtualenvs in $WORKON_HOME to [$1] |
192 | 204 | # rebuild_virtualenv() -- rebuild a virtualenv, leaving pkgs in place |
| 205 | + # $1="$VENVSTR" |
| 206 | + # $2="$VIRTUAL_ENV" |
193 | 207 | # TODO: adjust paths beyond the shebang |
| 208 | + # rebuild_virtualenv() -- rebuild a virtualenv |
| 209 | + # $1="$VENVSTR" |
| 210 | + # $2="$VIRTUAL_ENV" |
194 | 211 | # rebuild_virtualenvs() -- rebuild all virtualenvs in $WORKON_HOME |
195 | 212 |
|
196 | 213 |
|
|
210 | 227 | ## Functions |
211 | 228 | # venv $@ -- call $_VENV $@ |
212 | 229 | # venv -h -- print venv --help |
213 | | - # venv -b -- print bash configuration |
214 | | - # venv -p -- print IPython configuration as JSON |
| 230 | + # venv --print-bash -- print bash configuration |
| 231 | + # venv --print-json -- print IPython configuration as JSON |
215 | 232 | # _venv <args> -- call $_VENV -E $@ (for the current environment) |
216 | 233 | # workon_venv() -- workon a virtualenv and load venv (TAB-completion) |
217 | 234 | # param $1: $VIRTUAL_ENV_NAME ("dotfiles") |
|
222 | 239 | # examples: |
223 | 240 | # we dotfiles |
224 | 241 | # we dotfiles dotfiles |
225 | | - # TODO |
226 | 242 | # we() -- workon_venv |
227 | 243 | # CdAlias functions and completions |
228 | 244 | ## Grin search |
|
286 | 302 | # EDITOR_ (str): $EDITOR || $GUIVIMBIN $VIMCONF --remote-tab-silent |
287 | 303 | # VIMCONF (str): --servername ${VIRTUAL_ENV_NAME:-'EDITOR'} |
288 | 304 | # SUDO_EDITOR (str): $EDITOR |
| 305 | + # _setup_pager() -- set PAGER='less' |
289 | 306 | # ggvim() -- ${EDITOR} $@ 2>&1 >/dev/null |
290 | 307 | # edits() -- open $@ in ${GUIVIMBIN} --servername $1 |
291 | 308 | # e() -- ${EDITOR_} $@ [ --servername $VIRTUAL_ENV_NAME ] |
|
362 | 379 | # gac() -- 'git diff ${files}; git commit -m $1 ${files}' |
363 | 380 | # $1 (str): quoted commit message |
364 | 381 | # $2- (list): file paths |
365 | | - # gl -- 'git log --pretty=format:"%h : %an : %s" --topo-order --graph' |
366 | | - # gs -- 'git status' |
| 382 | + # gb -- 'git branch -v' |
367 | 383 | # gd -- 'git diff' |
368 | 384 | # gds -- 'git diff -p --stat' |
369 | 385 | # gc -- 'git commit' |
370 | 386 | # gco -- 'git checkout' |
371 | 387 | # gdc -- 'git diff --cached' |
| 388 | + # gl -- 'git log --pretty=format:"%h : %an : %s" --topo-order --graph' |
| 389 | + # gr -- 'git remote -v' |
| 390 | + # gs -- 'git status' |
372 | 391 | # gsi -- 'git is; git diff; git diff --cached' |
373 | 392 | # gsiw -- 'git -C $_WRD gsi' |
374 | 393 | # gsl -- 'git stash list' |
|
619 | 638 | # with pyline |
620 | 639 | # TODO: handle HISTTIMEFORMAT="" (" histn <cmd>") |
621 | 640 | # TODO: handle newlines (commands that start on the next line) |
| 641 | + # TODO: HISTTIMEFORMAT histn (OSX ) [ 8 ] |
| 642 | + # TODO: HISTTIMEFORMAT histn (Linux) [ 7 ] |
622 | 643 | ## usrlog.sh API |
623 | 644 | # ut() -- show recent commands |
624 | 645 | # termid() -- echo $_TERM_ID |
|
0 commit comments