commit 866c710cae90020d2d60838ab06a0f49a32e608c
parent ef1622ab7a649344033c59e9d3b47ccb05e5f60e
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Thu, 3 Mar 2022 23:52:52 +0530
Map :bb to :make in vim
Use surfraw to select queries instead of direct shell script
Use '?d' instead of '?' for web search
Diffstat:
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/.config/sh/aliases b/.config/sh/aliases
@@ -6,6 +6,8 @@ mich emcc && alias emcc='emcc --em-config "$XDG_CONFIG_HOME"/emscripten/config -
mich dict && alias dict='dict -c "$XDG_CONFIG_HOME"/dict/dictrc'
mich btpd && alias btpd='btpd -d "$XDG_DATA_HOME"/btpd'
mich abook && alias abook='abook -C "$XDG_CONFIG_HOME"/abook/abookrc --datafile "$XDG_DATA_HOME"/abook/addressbook'
+mich vim && alias v='vim'
+mich nvim && alias n='nvim'
# conditioning
## ls conditioning
@@ -18,8 +20,4 @@ mich sl && alias cdd=sl
mich ifconfig && alias lip="ifconfig | grep -w inet | cut -d ' ' -f2"
mich curl && alias gip="curl ifconfig.co"
-duck() {
- url="$*"
- lynx "https://duckduckgo.com/lite?q=$url"
-}
-alias '?'='duck'
+alias '?d'='sr duckduckgo'
diff --git a/.config/vim/keybindings/keybindings.vim b/.config/vim/keybindings/keybindings.vim
@@ -14,6 +14,9 @@ nnoremap <leader>wq :wq<cr>
nnoremap <leader>ww :w<cr>
nnoremap <leader>qq :q<cr>
+" Run Make
+nnoremap <leader>bb :make<CR>
+
nnoremap <CR> :noh<CR><CR>:<backspace>
" Plugin keybindings
diff --git a/.profile b/.profile
@@ -75,7 +75,8 @@ mich() {
export VISUAL=nvi
export EDITOR="$VISUAL"
-export BROWSER=$(mich lynx && echo lynx)
+export BROWSER="$(mich lynx && echo lynx)"
+export SURFRAW_browser="$BROWSER"
chance "${XDG_CONFIG_HOME}/sh/aliases"
chance "${XDG_CONFIG_HOME}/sh/plugin/index"