Merge branch 'master' of github.com:revans/bash-it
commit
70e4c1ced0
|
|
@ -1,3 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
alias em="open -a emacs"
|
||||
case $OSTYPE in
|
||||
linux*)
|
||||
alias em='emacs'
|
||||
alias e='emacsclient -n'
|
||||
;;
|
||||
darwin*)
|
||||
alias em="open -a emacs"
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -37,15 +37,19 @@ alias rb="ruby"
|
|||
|
||||
alias piano="pianobar"
|
||||
|
||||
alias ..='cd ..' # Go up one directory
|
||||
alias ...='cd ../..' # Go up two directories
|
||||
alias -- -="cd -" # Go back
|
||||
alias ..='cd ..' # Go up one directory
|
||||
alias ...='cd ../..' # Go up two directories
|
||||
alias ....='cd ../../..' # Go up two directories
|
||||
alias -- -="cd -" # Go back
|
||||
|
||||
# Shell History
|
||||
alias h='history'
|
||||
|
||||
# Tree
|
||||
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
|
||||
if [ ! -x "$(which tree)" ]
|
||||
then
|
||||
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
|
||||
fi
|
||||
|
||||
# Directory
|
||||
alias md='mkdir -p'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Textmate
|
||||
alias e='mate . &'
|
||||
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &'
|
||||
case $OSTYPE in
|
||||
darwin*)
|
||||
# Textmate
|
||||
alias e='mate . &'
|
||||
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &'
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Reference in New Issue