diff options
| -rw-r--r-- | .bashrc | 7 | ||||
| -rw-r--r-- | .vimrc | 2 | ||||
| -rwxr-xr-x | bin/open | 8 |
3 files changed, 13 insertions, 4 deletions
@@ -30,13 +30,13 @@ case $(uname -o) in alias ls='ls -GF' alias ll='ls -AlGFhv' alias ldd='otool -L' - trap 'printf "\e]2;${PWD/~/\~}: ${BASH_COMMAND/update_terminal_cwd/bash}\a"' DEBUG + trap 'printf "\e]2;${PWD/~/\~} ${BASH_COMMAND%update_terminal_cwd}\a"' DEBUG ;; (GNU/Linux|Linux) export GNUTERM='sixelgd enhanced truecolor font "arial,9"' alias ls='ls --color=auto -v' alias ll='ls -AlFhv' - [ -f /etc/arch-release ] || trap 'printf "\e]2;${PWD/~/\~}:\ ${BASH_COMMAND/ps1/bash}\a"' DEBUG + [ -f /etc/arch-release ] || trap 'printf "\e]2;${PWD/~/\~} ${BASH_COMMAND%ps1}\a"' DEBUG ;; esac @@ -69,6 +69,7 @@ alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date #alias cl='cf xft:Mono:size=12' #alias cp='cp --reflink' +alias grep='grep -i --color' alias more='less' alias vi='vim' alias view='vim -R' @@ -167,4 +168,4 @@ meteo() { #bind -m vi-command 'Control-l: clear-screen' #bind -m vi-insert 'Control-l: clear-screen' -# [ -f ~/.fzf.bash ] && source ~/.fzf.bash +[ -f ~/.fzf.bash ] && source ~/.fzf.bash @@ -86,7 +86,7 @@ hi SpellBad gui=undercurl noremap <leader>n :bn<cr> noremap <leader><leader> :bd<cr> -noremap <leader>o :!xdg-open <cWORD>&<cr><cr> +noremap <leader>o :!open <cWORD>&<cr><cr> noremap <C-g> :tag <c-r><c-w><cr> noremap <C-p> :Files<cr> diff --git a/bin/open b/bin/open new file mode 100755 index 0000000..aa5bfb2 --- /dev/null +++ b/bin/open @@ -0,0 +1,8 @@ +#!/bin/sh + +case $(uname -s) in +(Darwin) + exec /usr/bin/open "$@" ;; +(*) + exec xdg_open "$@" >/dev/null 2>&1 </dev/null & ;; +esac |
