-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bash_aliases
More file actions
54 lines (43 loc) · 1.29 KB
/
dot_bash_aliases
File metadata and controls
54 lines (43 loc) · 1.29 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
#!/bin/bash
# alias cd='z'
# some more ls aliases
alias ll='ls -AlF'
alias la='ls -a'
alias mv="mv --no-clobber"
alias cp="cp --no-clobber"
mkcd() {
mkdir -p $1 &&
command cd $1
}
# ROS2 aliases
alias si='source install/setup.bash'
alias cb='colcon build --symlink-install --continue-on-error --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
alias ct='colcon test --event-handlers console_cohesion+'
alias cbsel='cb --packages-select'
alias rdp='rosdep install --from-paths . -y --ignore-src'
alias rrm='rm -r build/ install/ log/'
pypkgc() {
ros2 pkg create $1 --build-type=ament_python --maintainer-name="Matthew Reese" --license="Apache-2.0" --dependencies=rclpy
}
ifcepkgc() {
ros2 pkg create $1 --build-type=ament_cmake --maintainer-name="Matthew Reese" --license="Apache-2.0"
}
# Program aliases
if command -v batcat &>/dev/null; then
alias bat='batcat'
fi
if command -v lazygit &>/dev/null; then
alias lg='lazygit'
fi
# alias code='code-insiders'
alias n='nvim'
if [[ $TERM == "xterm-kitty" ]]; then
alias ssh='kitten ssh'
fi
alias tma='tmux attach || tmux'
function gdb-aarch64() {
qemu-aarch64 -g 1236 -L /usr/aarch64-linux-gnu/ "$1" &
gdb-multiarch -ex 'set architecture aarch64' -ex 'target remote localhost:1236' "$1"
}
# Update history
alias hu='history -n'