-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
121 lines (106 loc) · 5.29 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#filtered vim: filetype=sh:
######################## D[A]TMO ##############################
export ROS_WORKSPACE=/home/kostas/catkin_ws
alias datmo_='cd ~/catkin_ws/src/datmo'
alias vdatmo='vim -S ~/datmo_ws/src/datmo/.datmo.vim'
alias t='roslaunch datmo test.launch'
alias ts=' roslaunch datmo sim_test.launch'
alias to='roslaunch odometry test.launch'
alias lshape='mupdf ~/report/papers/L-Shape.pdf'
alias datmo_compile='cd ~/datmo_ws && find src/datmo/src/ -ignore_readdir_race |entr catkin_make -DCATKIN_WHITELIST_PACKAGES=datmo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
alias localization_compile='cd ~/datmo_ws && find src/localization/src/ -ignore_readdir_race |entr -p catkin_make -DCATKIN_WHITELIST_PACKAGES=localization'
###################### OS [S]pecifics ##########################
if [[ $OSTYPE == darwin* ]]; then
alias open='open -a Finder ./'
elif [[ $OSTYPE == linux-gnu ]]; then
alias open='gnome-open . &'
fi
###################### [E]vo ###########################
alias evo='cd ~/datmo_ws/src/evo'
alias run='cd ~/datmo_ws/src/evo && find -name "*.py" | entr -d -c python3 datmo_evaluation.py'
######################## [G]eneral ##############################
alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
alias less='less -FSRXc' # Preferred 'less' implementation
alias ..='cd ../' # Go back 1 directory level
alias ...='cd ../../' # Go back 2 directory levels
alias 2.='cd ../../' # Go back 2 directory levels
alias 3.='cd ../../../' # Go back 3 directory levels
alias 4.='cd ../../../../' # Go back 4 directory levels
alias 5.='cd ../../../../../' # Go back 5 directory levels
alias 6.='cd ../../../../../../' # Go back 6 directory levels
alias ~="cd ~" # ~: Go Home
alias c='clear' # c: Clear terminal display
alias which='type -all' # which: Find executables
alias b='vim ~/.bashrc'
alias a='vim ~/.aliases'
alias i='vim ~/.config/i3/config'
alias v='vim ~/.vimrc'
alias s='source ~/.bashrc'
alias path='echo -e ${PATH//:/\\n}'
alias cal='ncal -MC3'
#cd() { builtin cd "$@"; ll; } # Always list dir contents after 'cd'
alias ll='ls -FGlAhp --time-style=+"%d/%m/%y %H:%M"'
alias la='ls -A'
alias l='ls -CF'
alias vs='vim -S'
alias screens='sh ~/.screenlayout/monitor_laptop.sh'
alias cl='xrandr --output eDP-1 --off'
alias ol='xrandr --output eDP-1 --auto'
alias m='mupdf'
alias z='zathura'
alias shutdown='systemctl poweroff'
########################## R[O]S ##############################
alias mmac='export ROS_MASTER_URI=http://localhost:11311'
alias core='roscore &'
alias rviz='rosrun rviz rviz &'
alias hz='rostopic hz'
alias recho='rostopic echo'
alias list='rostopic list'
alias mocap='roslaunch mocap_optitrack exp.launch'
alias midi='rosrun midi_ros midi_input_node'
alias singularity='singularity shell ~/Downloads/robprac-singularity2.4-fixes0.img'
alias o='rostopic echo /rosout'
if [ -f /opt/ros/kinetic/setup.bash ]; then
source /opt/ros/kinetic/setup.bash
source ~/datmo_ws/devel/setup.bash
source ~/Documents/barc/workspace/devel/setup.bash
export ROS_MASTER_URI=http://localhost:11311
fi
if [ -f /opt/ros/melodic/setup.bash ]; then
source /opt/ros/melodic/setup.bash
source /home/kostas/catkin_ws/devel/setup.bash
source /home/kostas/simulator_ws/devel/setup.bash
export ROS_MASTER_URI=http://localhost:11311
export ROS_URI=http://localhost:11311
fi
######################### [D]SV #############################
alias car='ssh [email protected]'
alias pi='ping 192.168.0.101'
alias mcar='export ROS_MASTER_URI=http://192.168.0.101:11311 && export ROS_IP=192.168.0.102'
alias bags_move='scp -r [email protected]:/home/kostas/bags/* /home/kostas/Dropbox/experiments/'
#alias video_move='scp [email protected]:/home/pi/ocam.h264 /home/kostas/Dropbox/experiments/ocam.h264'
alias ch='ntpdate -q 192.168.0.101' # Time related
alias adjust_time='sudo ntpdate -u pool.ntp.org' # Time related
alias carodom='scp -r /home/kostas/datmo_ws/src/odometry/* [email protected]:/home/kostas/datmo_ws/src/odometry'
alias cardatmo='scp -r /home/kostas/datmo_ws/src/datmo/ [email protected]:/home/kostas/datmo_ws/src/'
alias carmk='echo "cd ~/datmo_ws && catkin_make"|car'
####################### [V]arious #############################
#alias malias="history | tail -n2 | head -n1 | awk '{$1="";=print $0}' | alias_maker"
alias malias='history | tail -n2 | head -n1 | alias_maker'
alias cc='xclip -selection clipboard'
alias pc='xclip -o -selection clipboard'
alias bags='cd ~/Dropbox/experiments/7/derivatives'
alias results='cd ~/results'
alias presentation_='cd ~/presentation'
alias rec='recordmydesktop --fps 10 --no-sound'
alias rec30='recordmydesktop --fps 30 --no-sound'
alias conv='ffmpeg -i out.ogv -f mp4 out.mp4'
alias datmo_compile='cd ~/datmo_ws && find src/datmo/src/ -ignore_readdir_race |entr catkin_make -DCATKIN_WHITELIST_PACKAGES=datmo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
alias g=' grep -irn'
alias ss=' gnome-screenshot -af /home/kostas/report/figures/screenshots/$(date +"%d%H:%M").png'
alias θσ=' setxkbmap us'
alias gr=' setxkbmap gr'
#alias car=' cd ~/datmo_ws/src/car_demo-master/car_demo/'
alias sim='roslaunch car_demo sim.launch'