-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
94 lines (68 loc) · 2.51 KB
/
.bash_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
#!/bin/bash
source /home/jkordani/.rr_aliases
alias udacity="docker run -e DISPLAY -e QT_X11_NO_MITSHM -v ~/.Xauthority:/home/user/.Xauthority --net host -v ~/Code/udacity/rse/:/home/jkordani/Code/udacity/rse/ -u user -it --rm udacity:latest /bin/bash"
# SSH_ENV="/home/jkordani/.ssh/agent-environment"
# the below wasn't necessary until recently, and maybe it was transient... lets find out
# function start_agent {
# echo "Initialising new SSH agent..."
# /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "/home/jkordani/.ssh/agent-environment"
# echo succeeded
# chmod 600 "/home/jkordani/.ssh/agent-environment"
# source "/home/jkordani/.ssh/agent-environment" > /dev/null
# /usr/bin/ssh-add;
# }
# # Source SSH settings, if applicable
# if [ -f "/home/jkordani/.ssh/agent-environment" ]; then
# source "/home/jkordani/.ssh/agent-environment" > /dev/null
# #ps ${SSH_AGENT_PID} doesn't work under cywgin
# ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
# start_agent;
# }
# else
# start_agent;
# fi
alias sudo="sudo -E"
alias checkinstall="sudo checkinstall [email protected] -D --strip=no --stripso=no --install=no"
alias kinetic="source /opt/ros/kinetic/setup.bash"
alias srcalias='source ~/.bashrc; source ~/.bash_aliases; source ~/.rr_aliases'
#git dotfiles
alias _config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
alias evosource="source ~/Code/evo/evo-play/bin/activate"
alias sshh="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
config () {
pushd "${HOME}" >/dev/null || return
_config "$@"
popd >/dev/null || return
}
export EDITOR='emacsclient -a "" -c $@'
function emacs() {
if [[ "$1" == "-nw" ]] ; then # if terminal, open "normal" mode
command emacs "$@"
elif (( "$#" >= "1" )); then
nohup emacsclient -a "" -c "$@" & # c means always make new gui window
else
nohup emacsclient -a "" -c . &
fi
}
function newemacs () {
if (( "$#" >= "2" )); then
nohup emacsclient -a "" -c -s "$1" "${@:2}" &
else
nohup emacsclient -a "" -c -s "$1" . &
fi
}
function mkcd () {
mkdir -p "$1"
pushd "$1" || return
}
typeset -xf mkcd
function localprojects () {
cd ~/quicklisp/local-projects/
}
typeset -xf localprojects
#enables **
shopt -s globstar
alias bin2hex="hexdump -ve '1/1 \"%.2x\"'"
#makes my qt4 app recordable in rr replay tool. But might change the behavior?
export QT_X11_NO_MITSHM=1
source /opt/ros/kinetic/setup.bash