-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.alias
More file actions
45 lines (32 loc) · 1.25 KB
/
.alias
File metadata and controls
45 lines (32 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
module=$( echo $PWD | sed -e 's/^.*\///;s/-/_/g' )
m=${module}
alias c='( clear && invoke clean )'
alias b='( clear && logts -b log/build invoke build )'
alias t='( clear && c && logts -b log/test invoke test )'
# alias inst='( clear && logts -b log/install invoke install && echo "install path = $( which-module ${module} )" )'
alias re='( c && b && t )'
#
# alias x=' PYTHONPATH=".:..:${PYTHONPATH}" log err python3 t/single.py '
# HACK
alias x=' PYTHONPATH=".:t:${PYTHONPATH}" log err python3 -m single '
alias rx=' c && x '
function pyhere() {
export PYTHONPATH=".:t:tests:${PYTHONPATH}"
logts -b log/pyhere python3 "$@"
}
#------------------------------------------------------------------------------
for alt in .custom .local ; do
if [ -r ${alt} ] ; then
echo ": source ${alt}"
source ${alt}
fi
done
#------------------------------------------------------------------------------
alias gfetch=' git fetch origin '
alias gmod=' gfetch && git status --untracked-files=no '
alias gstat=' gfetch && git status '
alias gadd=' git fetch origin && git add '
alias gpull=' gfetch && git pull origin master '
alias gpush=' gpull && git push origin master '
#------------------------------------------------------------------------------