change prompt and add vim plugin
Prithu Goswami prithugoswami524@gmail.com
Sat, 25 Jul 2020 12:12:04 +0530
M
.bashrc
→
.bashrc
@@ -3,6 +3,8 @@ # ~/.bashrc
# set -o vi +. $HOME/bin/tmp/z.sh + # If not running interactively, don't do anything [[ $- != *i* ]] && return@@ -11,6 +13,7 @@
cd() { builtin cd "$@" && ls --color; } + sman(){ man `man -k . | fzf -i --reverse --height=40% --tiebreak=begin |\@@ -37,6 +40,11 @@ fhe(){
vim "$(find ~/* -type f | fzf -i --reverse --height=40% )" } +# find and open +fo(){ + rifle "$(fzf -i --reverse --height=40%)" +} + # cheat.sh cheat(){ curl -s cheat.sh/$1@@ -61,9 +69,24 @@ "push") rclone sync -v $HOME/dropbox drop:/ "${@:2}" ;;
esac } +inb(){ + if [ "$#" = "0" ]; then + task next +in + else + task add +in "$@" + fi +} alias t="task" -alias todo="task modify -in" +alias o="rifle" + +todo(){ + if [ $# -eq 0 ]; then + task -in + else + task modify -in "$@" + fi +} alias cfi="vim ~/.config/i3/config" alias cfz="vim ~/.zshrc"@@ -72,18 +95,34 @@ alias cfp="vim ~/.profile"
alias cfv="vim ~/.vimrc" alias cfx="vim ~/.Xresources" alias cfr="vim ~/.config/ranger/rifle.conf" +alias etf="vim ~/docs/org/todo.txt" +alias egc="vim ~/docs/org/growth-cal.txt" alias rx="xrdb ~/.Xresources" alias tmux="tmux -u" alias ch="ping 8.8.8.8" alias n="nautilus" alias yv="youtube-viewer" alias mkddir="mkdir `date +%d-%m-%Y`" +alias thot="vim ~/docs/org/thoughts/`date +%s`" +alias tt="transmission-remote" +# alias yw="mpv --ytdl-format=\"best[height<=480]\"" +alias yw="mpv --ytdl-format=\"bestvideo[height<=480]+bestaudio/best[height<=480]\"" +alias yal="mpv --ytdl-format=251" alias ls='ls --color=auto' -#PS1='\[\033[34m\][\u@\h\[\033[01;00m\] \W\[\033[34m]\]\[\033[00m\]\$ ' +#PS1='\[\033[34m\][\u@\h\[\033[01;00m\] \w\[\033[34m]\]\[\033[00m\]$ ' +PS1="\[\033[01;34m\][\[\033[01;00m\]\w\[\033[01;34m\]]\[\033[01;00m\]\[\033[01;32m\]\$(git branch 2>/dev/null | grep '^*' | colrm 1 2 | sed 's/^/ (/' | sed 's/$/)/') \[\033[01;00m\]" #PS1='\[\033[01;32m\]ॐ [\[\033[37m\]\w\[\033[32m\]]\[\033[00m\] ' -PS1='\[\033[01;32m\]⮞ [\[\033[37m\]\w\[\033[32m\]]\[\033[00m\] ' +#PS1='\[\033[01;32m\]⮞ [\[\033[37m\]\w\[\033[32m\]]\[\033[00m\] ' #PS1='\[\033[01;32m\]🡲 [\[\033[37m\]\w\[\033[32m\]]\[\033[00m\] ' #PS1='\[\033[01;32m\]● [\[\033[37m\]\w\[\033[32m\]]\[\033[00m\] ' + +[[ -f ~/bin/bash_prompt.sh ]] && . ~/bin/bash_prompt.sh + +HISTCONTROL=ingoreboth +HISTSIZE=10000000 +HISTFILESIZE=10000000 +PROMPT_COMMAND='history -a' +HISTIGNORE='ls:bg:fg:history:cd:rm'
M
.vimrc
→
.vimrc
@@ -19,6 +19,7 @@ Plugin 'rakr/vim-one'
Plugin 'tomasr/molokai' Plugin 'junegunn/fzf.vim' Plugin 'chriskempson/base16-vim' +Plugin 'dhruvasagar/vim-table-mode' call vundle#end()@@ -150,3 +151,6 @@ " let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
" endif " nnoremap <leader>n :w<Enter>:!ns %<Enter> + +let g:table_mode_corner_corner='+' +let g:table_mode_header_fillchar='='