Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New bash alias: gvimwiki

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...
commit 765959bb27e698b7da67432560f68029dbd7e383 1 parent ebae332
Martin Darmüntzel authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 .bashrc
View
8 .bashrc
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.