-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
74 lines (56 loc) · 1.94 KB
/
aliases
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
# Vim is THE editor
export EDITOR="vim"
alias svim='sudo vim'
# ls
alias ls='ls --color=auto'
alias ll='ls -l'
alias lh='ls -lh'
alias grep='grep --color=auto'
# Git
alias gs='git status'
alias ga='git add'
alias gc='git commit -v'
alias gd='git diff'
alias gb='git branch'
alias gco='git checkout'
# Ack
alias ack='ack-grep'
# Tmux
alias tmux='tmux -2'
# Use vi keybindings for info
alias info='info --vi-keys'
# ARM development
function stm32-gdb() {
st-util &> /dev/null & arm-none-eabi-gdb -q -ex "tar rem :4242" --symbol "$*";
}
function jlink-gdb() {
JLinkGDBServer &> /dev/null & arm-none-eabi-gdb -q -ex "tar rem :2331" --symbol "$*";
pkill JLinkGDBServer;
}
function am3359-gdb() {
JLinkGDBServer -device am3359 -speed 12000 &> /dev/null & arm-none-eabi-gdb -q -ex "tar rem :2331" --symbol "$*";
pkill JLinkGDBServer;
}
function omap4430-core0-gdb() {
JLinkGDBServer -speed 12000 -scriptfile /opt/SEGGER/JLink/Samples/JLink/Scripts/OMAP4430_Core0.JLinkScript &> /dev/null & arm-none-eabi-gdb -q -ex "tar rem :2331" --symbol "$*";
pkill JLinkGDBServer;
}
function omap4430-core1-gdb() {
JLinkGDBServer -speed 12000 -scriptfile /opt/SEGGER/JLink/Samples/JLink/Scripts/OMAP4430_Core1.JLinkScript &> /dev/null & arm-none-eabi-gdb -q -ex "tar rem :2331" --symbol "$*";
pkill JLinkGDBServer;
}
# MSP430 development
export PATH=/usr/local/msp430/bin:$PATH
function msp-gdb() {
mspdebug --usb &> /dev/null && mspdebug rf2500 gdb &> /dev/null & msp430-gdb -q -ex "tar rem :2000" --symbol "$*";
}
# Chromium OS
export PATH=$PATH:/home/prattmic/prog/opensource/chromiumos/depot_tools/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
# Rust
export PATH=$PATH:/home/prattmic/.cargo/bin
# NPM packages
export PATH=$PATH:/home/prattmic/.npm-global/bin
# Quartus
export QSYS_ROOTDIR="/home/prattmic/prog/embedded/fpga/altera/15.0/quartus/sopc_builder/bin"
export ALTERAOCLSDKROOT="/home/prattmic/prog/embedded/fpga/altera/15.0/hld"