-
Notifications
You must be signed in to change notification settings - Fork 1
/
bash_aliases
32 lines (26 loc) · 882 Bytes
/
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
function rails_server {
printf "\e]0;$1 server\a"
KG_SITE="$1" bundle exec rails s
printf '\e]0;\a'
}
for site in jura revisor juridik hr sundhed abf; do
alias ${site}="rails_server ${site}"
done
alias redisstart='sudo launchctl start io.redis.redis-server'
alias redisstop='sudo launchctl stop io.redis.redis-server'
alias grep='grep --color=auto'
alias rgrep='grep -r'
alias rbgrep='rgrep --include \*.rb'
alias xopen='open -a "Oxygen XML Editor"'
alias xaopen='open -a "Oxygen XML Author"'
alias xdopen='open -a "Oxygen XML Developer"'
#alias bundle=~/bin/bundle-and-ctags
#function rspec-without-terminal-kill {
# trap 'stty echo' EXIT
# trap 'echo "foobar trap"' EXIT
# bundle exec rspec $@
#}
#alias rspec="trap 'stty echo' EXIT && trap 'echo \"foobar trap\"' EXIT && bundle exec rspec $@"
alias trash='rmtrash'
alias trashdir='rmdirtrash'
alias sudo='sudo '