commit efd756e426497f2672fba66e3155ae148ac3c2c5
parent 9320c9e5f2002e7cdef4116b3fd97c1a5f8425a7
Author: bharatvaj.ph <bharatvaj@yahoo.com>
Date: Mon, 23 Aug 2021 06:03:03 +0530
Added vi mode for bash
Added 'shorthand' plugin
Added vim-commentary plugin in vim
Diffstat:
5 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/.bash_profile b/.bash_profile
@@ -1,10 +1,11 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
+set -o vi
+
[ -f ~/.profile ] && . ~/.profile
[ -f ~/.personal/config ] && . ~/.personal/config
[ -f "${XDG_CONFIG_HOME}/bash/bashrc" ] && . "${XDG_CONFIG_HOME}"/bash/bashrc
# Zoho
[ -f ~/.zoho/zoho ] && . ~/.zoho/zoho
-
diff --git a/.config/bash/plugin/git b/.config/bash/plugin/git
@@ -17,7 +17,6 @@ alias gcos='git checkout staging'
alias gcod='git checkout develop'
alias gd='git diff'
alias gda='git diff HEAD'
-alias gi='git init'
alias glg='git log --graph --oneline --decorate --all'
alias gld='git log --pretty=format:"%h %ad %s" --date=short --all'
alias gm='git merge --no-ff'
diff --git a/.config/bash/plugin/index b/.config/bash/plugin/index
@@ -11,3 +11,5 @@ function bashplug() {
# Enable this plugin if 'git' is installed
which git >&/dev/null && bashplug git
+which ranger >&/dev/null && bashplug nb
+bashplug shorthand
diff --git a/.config/vim/vimrc b/.config/vim/vimrc
@@ -35,7 +35,7 @@ set exrc
set nofixendofline
" Disable vim intro message
-set shortmess=I
+set shortmess=Iat
" Search
set hlsearch
@@ -70,6 +70,7 @@ call plug#begin($XDG_DATA_HOME."/vim/plugged")
Plug 'editorconfig/editorconfig-vim'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
+ Plug 'tpope/vim-commentary'
call plug#end()
" Plugin customizations
@@ -84,6 +85,7 @@ nmap <leader>F :Files<cr>
nnoremap <leader>t :tabnew<cr>
nnoremap <leader>p :Rg<cr>
nnoremap <leader>s :source ~/.config/vim/vimrc<cr>
+nnoremap <leader>cc :ChecklistToggleCheckbox<cr>
" Theming Begin
" Theming End
diff --git a/.profile b/.profile
@@ -17,6 +17,8 @@ export PSQL_HISTORY="$XDG_CACHE_HOME/pg/psql_history"
export PGPASSFILE="$XDG_CONFIG_HOME/pg/pgpass"
export PGSERVICEFILE="$XDG_CONFIG_HOME/pg/pg_service.conf"
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
+export TASKRC="${XDG_CONFIG_HOME}/task/taskrc"
+export TASKDATA="${XDG_DATA_HOME}/task"
export HISTFILE="$XDG_DATA_HOME"/bash/history
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc
@@ -26,6 +28,5 @@ export WGETRC="$XDG_CONFIG_HOME/wgetrc"
export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
# Setup editor
-export EDITOR=vim
export VISUAL=vim
-
+export EDITOR="$VISUAL"