-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git:https://github.com/doutriaux1/dotfiles
- Loading branch information
Showing
4 changed files
with
49 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Moving around | ||
alias ..="cd .." | ||
alias ...="cd ../.." | ||
|
||
# SPACK | ||
export SPACK_ROOT=/usr/workspace/cdoutrix/spack | ||
alias activate_spack=". ${SPACK_ROOT}/share/spack/setup-env.sh" | ||
|
||
# CONDA | ||
export activate_conda="source /g/g19/cdoutrix/miniconda3/bin/activate" | ||
export activate_amlcs="conda activate /usr/workspace/aml_cs/kosh/toss_3_x86_64_ib/dev" | ||
|
||
## Git | ||
alias gci="git commit" | ||
alias gco="git checkout" | ||
alias gcl='${HOME}/bin/git-clean-local.py -s -V' | ||
alias gst='git status' | ||
alias gbr='for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r' | ||
alias gb='for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort' | ||
|
||
# Python | ||
alias pb="python setup.py install" | ||
alias p="ipython" | ||
PYTHONSTARTUP=${HOME}/.pythonrc | ||
JUPYTERLAB_DIR=${HOME}/.jupyter | ||
|
||
# Editors | ||
export EDITOR='vi' | ||
|
||
# History | ||
export HISTCONTROL=erasedups | ||
export HISTSIZE=1000000 | ||
export HISTFILESIZE=1000000 | ||
export TMOUT=0 | ||
|
||
# Unix | ||
alias ls="ls -h" | ||
alias ll="ls -l" | ||
alias md="mkdir" | ||
alias pd="pushd" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
|
||
[alias] | ||
dry2 = "!f() { grep -q 'changed in both' < $(git merge-tree $(git merge-base FETCH_HEAD $1) $1 FETCH_HEAD) && echo 'Merge conflict detected' || echo 'Merged cleanly'; }; f" | ||
|
||
dry = "!f() { git merge-tree `git merge-base $2 $1` $2 $1; }; f" | ||
rshw = remote show | ||
rprn = remote prune | ||
lol = log --graph --decorate --pretty=oneline --abbrev-commit | ||
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | ||
|
||
[push] | ||
default = current | ||
[user] | ||
name = Charles Doutriaux | ||
email = [email protected] | ||
|
||
[color] | ||
ui = auto | ||
[url "git:https://uv-cdat.llnl.gov/windfield.git"] | ||
insteadof = http:https://uv-cdat.llnl.gov/git/windfield.git | ||
name = Charles Doutriaux | ||
[http] | ||
sslBackend = schannel | ||
sslVerify = false | ||
|
||
[core] | ||
autocrlf = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters