-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_aliases.suse
41 lines (33 loc) · 1.22 KB
/
bash_aliases.suse
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
# useful day-to-day aliases
alias c='clear'
alias ls='ls --color=auto'
alias ll='ls -lh --color=auto'
alias la='ls -la --color=auto'
alias lt='ls --human-readable --size -1 -S --classify'
alias lt='du -sh * | sort -h'
alias pse='ps -ef | grep -i'
alias lsof='lsof -i -Pn'
alias lsize='ls | xargs -I {} du -sh "{}"'
alias ghist='history|grep'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# development and coding aliases
alias ipy='ipython --no-banner'
alias bexec='bundle exec'
# alias octave='octave -qf'
# alias lisp='rlwrap sbcl'
# alias ghci='stack ghci'
# networking tools
alias netlisten='ngrep -q -W byline "^(GET|POST) .*"'
# add an "alert" alias for long running commands.
# use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# suse specific aliases
alias zyp='sudo zypper'
# project aliases
alias safc='docker-compose run --rm api sh'
alias make-iso='docker-compose run --rm api bundle exec rake db:drop:all db:create:all db:migrate:with_data db:isolate:prepare_development'