-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
79 lines (66 loc) · 2.09 KB
/
.bashrc
File metadata and controls
79 lines (66 loc) · 2.09 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# [[ $- == *i* ]] && source ~/.local/share/blesh/ble.sh --attach=none
fastfetch
eval "$(/usr/local/bin/brew shellenv)"
# eval "$(fzf --bash)"
export PS1="\[\033[01;36m\]\w\n\[\033[01;35m\]\$\[\033[00m\] "
export PATH="/usr/local/opt/file-formula/bin:$PATH"
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/gsed/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/llvm/bin:$PATH"
export PATH="/usr/local/opt/ncurses/bin:$PATH"
export PATH="/usr/local/opt/cpio/bin:$PATH"
export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/ruby/bin:$PATH"
export PATH="/usr/local/opt/man-db/libexec/bin:$PATH"
export PATH="/Users/juhan/local/xv6/xv6-d1/xfel:$PATH"
export PATH="/Users/juhan/.local/bin:$PATH"
export PATH="/usr/local/opt/openjdk@17/bin:$PATH"
export PATH="/usr/local/opt/openjdk@8/bin:$PATH"
export PATH="/Users/juhan/local/cs427/apache-maven-3.9.9/bin:$PATH"
export LANG=en_US.utf-8
export VISUAL=/usr/local/bin/nvim
export LDFLAGS="-L/usr/local/opt/llvm/lib"
export CPPFLAGS="-I/usr/local/opt/llvm/include"
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
stty -ixon
rund1() {
cd ~/local/xv6/xv6-d1
rm kernel*
scp Ubuntu:~/local/S081/xv6-riscv/kernel/kernel.bin .
xfel version
xfel ddr d1
xfel write 0x40000000 kernel.bin
xfel exec 0x40000000
echo "open picocom now"
}
function j() {
ID="$$"
mkdir -p /tmp/$USER
OUTPUT_FILE="/tmp/$USER/joshuto-cwd-$ID"
env joshuto --output-file "$OUTPUT_FILE" $@
exit_code=$?
case "$exit_code" in
# regular exit
0)
;;
# output contains current directory
101)
JOSHUTO_CWD=$(cat "$OUTPUT_FILE")
cd "$JOSHUTO_CWD"
;;
# output selected files
102)
;;
*)
echo "Exit code: $exit_code"
;;
esac
}
alias gitd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias n=nvim
# [[ ${BLE_VERSION-} ]] && ble-attach
# eval "$(oh-my-posh init bash)"