dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit ea89228ea3399753928e360285bedae5d875facd
parent d0ec5a95025a6386cd29674641b653bd3500539c
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Wed, 12 Mar 2014 12:26:18 +0100

Native open() command in OSX, small vimperator theme changes

Diffstat:
M.vimperator/colors/darkness2.vimp | 2+-
M.zshrc | 7+++++--
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.vimperator/colors/darkness2.vimp b/.vimperator/colors/darkness2.vimp @@ -50,7 +50,7 @@ hi ModeMsg color: #afafaf; background: #222222; "CmdLine when Not i hi MoreMsg color: #afafaf; background: #222222; hi NonText color: lightblue; min-height: 16px; padding-left: 2px; hi Question color: #ffffff; background: #222222; font-weight: bold; -"hi Search font-size: inherit; padding: 0; color: #222222; background-color: yellow; padding: 0; +hi Search font-size: inherit; padding: 0; color: #222222; background-color: yellow; padding: 0; hi Function color: lightgreen; background: #222222; hi Number color: tan; background: #222222 hi String color: #222222; background: #afafaf; diff --git a/.zshrc b/.zshrc @@ -1,5 +1,7 @@ source ~/code/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +ARCH=$(uname) + autoload -U compinit promptinit colors compinit promptinit @@ -31,7 +33,9 @@ bindkey '^R' history-incremental-search-backward bindkey "^j" history-beginning-search-backward bindkey "^k" history-beginning-search-forward -function open() { xdg-open $1 &> /dev/null &disown; } +if [[ "$ARCH" != 'Darwin' ]]; then + function open() { xdg-open $1 &> /dev/null &disown; } +fi function lt() { ls -ltrsa "$@" | tail; } function psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto; } function fname() { find . -iname "*$@*"; } @@ -70,7 +74,6 @@ alias lla='ls -lA' alias l='ls -CF' # enable color support of ls and also add handy aliases -ARCH=$(uname) if [[ "$ARCH" != 'Darwin' ]]; then alias ls='ls --color=auto' else