1
kukat 2014-09-10 11:18:55 +08:00
Favourite thing in my .bashrc remains:
alias fuck='sudo $(history -p \!\!)' https://twitter.com/liamosaur/status/506975850596536320 |
2
jsonline 2014-09-10 11:53:32 +08:00
好顶赞
|
4
hahastudio 2014-09-10 12:01:37 +08:00
alias please='sudo'
|
5
skybr 2014-09-10 12:11:06 +08:00
排第一的那个解压为什么不直接用aunpack.
|
6
openroc 2014-09-10 12:15:14 +08:00
cool!~, up~!
|
7
openroc 2014-09-10 12:16:20 +08:00
@hahastudio alias god='sudo' :)
|
8
openroc 2014-09-10 12:19:45 +08:00
share my aliases in .bashrc, :)
# some aliases # different configurations for linux and mac if [ `uname` == "Darwin" ]; then alias ls='ls -G' alias ss2='netstat -l -p tcp' alias gg='open' alias gvim='mvim' alias ctags='/usr/local/bin/ctags' else alias ls='ls --color=auto' alias ss2='ss -tunpl' alias gvim='gvim -f' # configure input method input_method=fcitx im-switch -s ${input_method} if [ -n "${input_method}" ]; then export GTK_IM_MODULE=${input_method} export QT_IM_MODULE=${input_method} export XMODIFIERS="@im=${input_method}" export XIM=${input_method} export XIM_PROGRAM=${input_method} fi # quick open alias gg='nautilus' fi alias goshare='nautilus smb://share/' alias gotemp='nautilus smb://share/temp' alias ll='ls -lh' alias la='ls -A' alias l='ls -CF' alias du='du -h' alias df='df -h' alias ps2='ps aux | grep' alias history2='history | grep' alias kill2='kill -9' alias ip2='ifconfig | grep inet' # tmux related alias tmux="/usr/local/bin/tmux -2" alias tmuxnew='tmux new -s' alias attach='tmux attach -t' # todo alias ta='todo -a' alias ta1='todo -p 1 -a' alias ta2='todo -p 2 -a' alias ta3='todo -p 3 -a' alias ta4='todo -p 4 -a' # rename sublime text alias tt="sublime_text" # quick apt related alias ggupdate='sudo apt-get update' alias ggupgrade='sudo apt-get upgrade' alias gginstall='sudo apt-get install' |
9
loryyang 2014-09-10 12:39:29 +08:00
nice啊!有些alias还真是没想到,看到就觉得很有用
|
10
WKPlus 2014-09-10 13:42:16 +08:00
有意思,mcd就吸引到我了,以前一直`mkdir xx;cd !$`还以为够简洁了。
楼上的please=sudo也蛮有意思呀 |
11
bullettrain1433 2014-09-10 13:58:04 +08:00
@kukat 求教history -p \!\!功能是?
|
12
semicircle21 2014-09-10 15:26:14 +08:00
@typcn all you need is: https://github.com/mathiasbynens/evil.sh/blob/master/evil.sh
|