Repository navigation
Expand file tree
/
Copy pathaliases
More file actions
103 lines (84 loc) · 3.02 KB
/
Copy pathaliases
File metadata and controls
103 lines (84 loc) · 3.02 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# zsh aliases
alias :q='exit'
alias sz='source $HOME/.zshrc'
# colorise ls command
alias ls='ls --color=auto'
# colorise tree command
alias tree='tree -C'
# some ls aliases
alias ll='ls -alhF'
alias la='ls -A'
alias l='ls -CF'
# colorise grep commands
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# combine cd and ls functions
function cdls(){
cd "$@" && ls
}
# parent directories aliases
alias ..='cdls ..'
alias ...='cdls ../..'
alias ....='cdls ../../..'
alias .....='cdls ../../../..'
# run ranger (with exiing to selected directory option)
# alias r='echo "Starting Ranger file manager"; ranger --choosedir=$HOME/.lastdir; cd `cat $HOME/.lastdir`'
alias r='. ranger'
# open a file after choosing from fzf
alias vf='vim $(fzf)'
# ping google's DNS
alias p='ping 8.8.8.8'
# alias for mounting and unmounting usb
alias pendrive='~/dotfiles/scripts/pendrive.sh'
# alias for choosing workspace
alias choose_colcon_ws='~/dotfiles/scripts/colcon_workspace_switcher.sh'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alarm="~/dotfiles/scripts/alarm.sh"
# tmux alias
alias tmisc='tmux new -A -s misc'
# alias for choosing keyboard layout
alias change_keyboard='~/dotfiles/scripts/change_keyboard.sh'
alias cabin='f() { ros2 launch cabin_nav cabin_navigator.launch.xml robot_name:=$1 }; f'
alias cabingdb='f() { ros2 launch cabin_nav cabin_navigator.launch.xml robot_name:=$1 enable_gdb:=true }; f'
alias cabind='f() { ros2 launch cabin_nav cabin_navigator.launch.xml robot_name:=$1 dummy_mode:=true }; f'
# robot related aliases
alias ros2core='ros2 run rmw_zenoh_cpp rmw_zenohd'
alias cbt='bash $HOME/.ros/cbt.sh --this'
alias cba='bash $HOME/.ros/cbt.sh --all'
alias export_robile8='export ROS_MASTER_URI=http://robile:11311'
alias ipaintx1e='ssh steaps@ipaintx1e'
alias ipaintx1c='ssh steaps@ipaintx1c'
alias ipaintx1d='ssh steaps@ipaintx1d'
alias export_ipaintx1d='export ROS_DOMAIN_ID=0 && export ROS_DISCOVERY_SERVER=ipaintx1d:22322 && ros2 daemon stop && ros2 daemon start'
alias ipaintx1f='ssh steaps@ipaintx1f'
export_ipaintx1f() {
export ZENOH_CONFIG_OVERRIDE='connect/endpoints=["tcp/ipaintx1j:7447"]'
ros2core
}
alias ipaintx1g='ssh steaps@ipaintx1g'
export_ipaintx1g() {
export ZENOH_CONFIG_OVERRIDE='connect/endpoints=["tcp/ipaintx1g:7447"]'
ros2core
}
alias ipaintx1h='ssh steaps@ipaintx1h'
export_ipaintx1h() {
export ZENOH_CONFIG_OVERRIDE='connect/endpoints=["tcp/ipaintx1h:7447"]'
ros2core
}
alias ipaintx1i='ssh steaps@ipaintx1i'
alias ipaintx1j='ssh steaps@ipaintx1j'
alias ipaintx1l='ssh steaps@ipaintx1l'
alias pi0='ssh steaps@pi0'
alias pi1='ssh steaps@pi1'
alias robile8='ssh kelo@robile'
alias virtual_server='ssh dharmin@148.251.54.207 -p 82'
alias workstation='ssh steaps@workstation'
export_workstation() {
export ZENOH_CONFIG_OVERRIDE='connect/endpoints=["tcp/workstation:7447"]'
ros2core
}
alias iMeasure='ssh steaps@iMeasure'
alias ipaintx1g_pi='ssh steaps@ipaintx-raspi-a'
alias pib='ssh steaps@ipaintx-raspi-b'