-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc.linux
More file actions
65 lines (52 loc) · 1.39 KB
/
bashrc.linux
File metadata and controls
65 lines (52 loc) · 1.39 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
#;;; -*- mode: shell-script; -*-
alias tagsgen='find . -regex ".*\.[cChH]\(pp\)?" -print | etags -'
# Computational Engines setup
alias mathematica='/usr/local/Wolfram/Mathematica/8.0/Executables/mathematica'
alias matab='/usr/local/MathWorks/Matlab/bin/matlab &'
# Octave doesn't need anything special; it just works
alias dsn='sleep 0.25; xset dpms force off'
export BROWSER='chromium &2>/dev/null'
export XLIB_SKIP_ARGB_VISUALS=1
# GNU which is compatible with the expanded functinality
if [[ -z $_WHICH_BINARY ]]; then
export _WHICH_BINARY=`env which which`
fi
if hasbin keychain; then eval $(keychain -q --eval id_rsa); fi
emns() {
emacsclient -na "" "/sudo::$*"
}
ems() {
emacsclient -a "" -nw "/sudo::$*"
}
emcs() {
emacsclient -nc -a "" "/sudo::$*"
}
# Change urxvt's face
chface() {
if [ -z "$1" ]; then
face="Menlo";
size="7";
elif [ -z "$2" ]; then
face="Menlo";
size="$1";
else
face="$1";
size="$2";
fi
if [ "${face}" = "b" ]; then
face="Bitstream Vera Sans Mono"
elif [ "${face}" = "s" ]; then
face="Meslo LG S"
fi
if [ ! -z "$3" ]; then
params="$3";
else
params="regular";
fi
printf '\33]50;%s\007' "xft:${face}:${params}:size=${size}"
}
open () {
xdg-open $@ &>/dev/null &
}
export PANEL_FIFO="/tmp/$(whoami)-panel-fifo"
export NVM_DIR="/home/$(whoami)/.nvm"