Skip to content

Commit

Permalink
New bash alias: gvimwiki
Browse files Browse the repository at this point in the history
In other news: due to incompatible `hostname` versions on Mac OS X and
Linux, the alias section changes a little bit. Nothing fancy, just a
little ugly.
  • Loading branch information
Martin Darmüntzel committed Apr 2, 2012
1 parent ebae332 commit 765959b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .bashrc
Expand Up @@ -69,15 +69,17 @@ export EDITOR="$HOME/dotfiles/bin/sphyri.sh"
set editing-mode vi

# host-depending aliases (now with better overview):
case $(hostname -s) in
rupert)
case $(hostname) in
rupert.local) # <-- because on `hostname -s` returns "localhost" on the other hosts >m(
alias g='mvim --remote-silent';
alias inst='brew install';
alias gvimwiki='mvim -c ":VimwikiIndex"';
;;
fitzgerald|kurtis)
alias g='gvim --remote-silent';
alias open='xdg-open';
alias inst='sudo pacman -S'
alias inst='sudo pacman -S';
alias gvimwiki='gvim -c ":VimwikiIndex" --name gvimwiki';
;;
esac

Expand Down

0 comments on commit 765959b

Please sign in to comment.