-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_user
69 lines (50 loc) · 1.54 KB
/
.bash_user
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Prompt
export PS1='\[\e[0;92m\]\n╭╴\[\e[1;3;37m\]\h\[\e[0;1;37m\]:\[\e[1;33m\]\w\[\e[0;37m\]\[\e[0m\] \n\[\e[0;92m\]╰╼\[\e[0m\] '
# Global variables
export EDITOR=emacs
# Keybinds
xmodmap -e 'keycode 65 = space underscore space'
# Makefile rules autocomplete
complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' ?akefile | sed 's/[^a-zA-Z0-9_.-]*$//'\`" make
# git autocomplete
if [ -f ~/.git-completion.bash ] ; then
. ~/.git-completion.bash
fi
if [ -d /nfs-scratch/$(whoami) ] ; then
export F=/nfs-scratch/$(whoami)
export NFS=/nfs-scratch/$(whoami)
export TMPDIR=/nfs-scratch/$(whoami)/tmp
fi
if [ -d /project ] ; then
# Home
export PATH=~/bin:~/sys/bin:$PATH
# CAT
export PATH=~/CAT/bin:$PATH
# LLVM
#source /project/llvm/3.7.1/enable
#source /project/llvm/3.9.1/enable
#source /project/llvm/5.0.0/enable
#source /project/llvm/7.0.0/enable
#source /project/llvm/7.0.1/enable
#source /project/llvm/8.0.0/enable
source /project/extra/llvm/9.0.0/enable
# iverilog
source /project/extra/iverilog/10.2/enable
# Burn CPU
source /project/extra/burnCPU/enable
# QEMU-ARM
source /project/extra/qemu-arm/6.0.0/enable
# Ninja
source /project/extra/ninja/enable
# GCC
#enableSoftware "/opt/rh/gcc-toolset-9/enable" ;
# Racket
export PATH=/project/racket-6.4/bin:$PATH
# Boost C++ library
# enableSoftware "/project/extra/boost/1.72.0/enable" ;
# Intel PIN
# enableSoftware "/project/extra/pin/3.13/enable" ;
# Intel PIN
# enableSoftware "/project/go/go_1.13.7/enable" ;
fi
echo -e -n "\e[2 q"