-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaliases
93 lines (72 loc) · 2.97 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
# 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_catkin_ws='~/dotfiles/scripts/catkin_workspace_switcher.sh'
alias cbt='catkin build --this'
# 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 lofi='cvlc --loop ~/Music/lofi_hiphop.mp3'
alias cabin='f() { roslaunch cabin_nav cabin_navigator.launch robot_name:=$1 }; f'
alias cabingdb='f() { roslaunch cabin_nav cabin_navigator.launch robot_name:=$1 enable_gdb:=true }; f'
alias cabind='f() { roslaunch cabin_nav cabin_navigator.launch robot_name:=$1 dummy_mode:=true }; f'
alias plantuml='java -Xmx1024m -DPLANTUML_LIMIT_SIZE=8192 -jar ~/.local/bin/plantuml.jar -gui'
# robot related aliases
alias yb2='ssh robocup@192.168.1.120'
alias yb2l='ssh -X robocup@192.168.1.120'
alias yb4='ssh -X robocup@youbot-brsu-4-pc2'
alias export_yb4='export ROS_MASTER_URI=http://youbot-brsu-4-pc2:11311'
alias yb2pc2='ssh -X robocup@youbot-brsu-2-pc2'
# alias export_yb2pc2='export ROS_MASTER_URI=http://youbot-brsu-2-pc2:11311; export ROS_IP=192.168.1.121'
alias export_yb2pc2='export ROS_MASTER_URI=http://youbot-brsu-2-pc2:11311'
alias yb3pc1='ssh -X robocup@192.168.1.114'
alias export_yb3pc1='export ROS_MASTER_URI=http://192.168.1.114:11311; export ROS_IP=192.168.1.119'
alias robile8='ssh kelo@robile'
alias export_robile8='export ROS_MASTER_URI=http://robile:11311'
alias ipaintx1b='ssh steaps@ipaintx1b'
alias export_ipaintx1b='export ROS_MASTER_URI=http://ipaintx1b:11311'
alias ipaintx1d='ssh steaps@ipaintx1d'
alias export_ipaintx1d='export ROS_MASTER_URI=http://ipaintx1d:11311'
alias ipaintx_static='ssh steaps@ipaintx_static'
alias ipaintx1a='ssh steaps@ipaintx1a'
alias ipaintx1c='ssh steaps@ipaintx1c'
alias iMeasure='ssh steaps@iMeasure'
alias ipaintx1e='ssh steaps@ipaintx1e'
alias ipaintx1f='ssh steaps@ipaintx1f'
alias export_ipaintx1f='export ROS_MASTER_URI=http://ipaintx1f:11311'
alias ipaintx1g='ssh steaps@ipaintx1g'