-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
68 lines (53 loc) · 1.95 KB
/
.bash_profile
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
alias wgets='wget --no-check-certificate'
alias vimdiff='nvim -d'
alias vi=nvim
alias grep='grep --color --exclude=tags'
alias pcl_viewer='/usr/local/Cellar/pcl/1.11.1_5/pcl_viewer.app/Contents/MacOS/pcl_viewer'
# project
alias lyft='cd ~/workdir/code/openwrt/openwrt; source env/lyft-vpu.conf'
# log ssl key
export SSLKEYLOGFILE=~/.ssl-key.log
# gstreamer pkg
export PATH=$PATH:/Library/Frameworks/GStreamer.framework/Versions/1.0/bin
# ext2fuse
export PATH="/usr/local/opt/e2fsprogs/bin:$PATH"
export PATH="/usr/local/opt/e2fsprogs/sbin:$PATH"
# python 2.7.10
export PATH="/usr/local/bin:$PATH"
# stm32
export PATH="$PATH:/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.macos64_2.0.200.202202231230/tools/bin"
# eng env
export LANG="en_US"
export LC_ALL=en_US.UTF-8
# git svn
export PERL5LIB=/usr/local/opt/subversion/lib/perl5/site_perl/5.30.2/darwin-thread-multi-2level/:$PERL5LIB
# z.lua
eval "$(lua ~/git/neovimrc/z.lua/z.lua --init bash enhanced once echo)"
alias zz='z -c' # 严格匹配当前路径的子路径
alias zi='z -i' # 使用交互式选择模式
alias zf='z -I' # 使用 fzf 对多个结果进行选择
alias zb='z -b' # 快速回到父目录
# gnu arm gcc
export PATH=$PATH:/Applications/ARM/bin
function ntfs() {
sudo umount /Volumes/$2
sudo mkdir /Volumes/$2
sudo mount -o rw,auto,nobrowse -t ntfs /dev/$1 /Volumes/$2
}
function apfs() {
sudo mount -t hfsplus -o remount,force,rw $1
}
function ext4() {
[ "$1" = "" ] && echo "ext4 disk3s1" && exit
sudo umount /Volumes/Transcend
sudo mkdir /Volumes/Transcend
sudo ext4fuse /dev/$1 /Volumes/Transcend -o allow_other
}
function dirdiff() {
nvim -c "DirDiff $1 $2"
}
function pi() {
[ -c "/dev/tty.usbmodemE00710091" ] && alias pi='picocom -b 115200 /dev/tty.usbmodemE00710091'
[ -c "/dev/ttyACM0" ] && alias sf='picocom -b 115200 /dev/ttyACM0'
[ -c "/dev/ttyUSB0" ] && alias s6lm='picocom -b 115200 /dev/ttyUSB0'
}