From 1f5e5ed306e2cd24d9d6a4d5570024eaa279d47e Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 20 Nov 2021 21:38:54 -0500 Subject: [PATCH] Initial commit --- .Xdefaults | 9 +++++++++ .config/cmus/rc | 1 + .config/nvim/init.vim | 27 +++++++++++++++++++++++++++ .cwmrc | 12 ++++++++++++ .exrc | 5 +++++ .gitconfig | 11 +++++++++++ .kshrc | 40 ++++++++++++++++++++++++++++++++++++++++ .tmux.conf | 5 +++++ 8 files changed, 110 insertions(+) create mode 100644 .Xdefaults create mode 100644 .config/cmus/rc create mode 100644 .config/nvim/init.vim create mode 100644 .cwmrc create mode 100644 .exrc create mode 100644 .gitconfig create mode 100644 .kshrc create mode 100644 .tmux.conf diff --git a/.Xdefaults b/.Xdefaults new file mode 100644 index 0000000..9a32529 --- /dev/null +++ b/.Xdefaults @@ -0,0 +1,9 @@ +*visualBell: True +XTerm*eightBitInput: false + +XTerm*renderFont: true +XTerm*faceName: SourceCodePro +XTerm*faceSize: 12 + +XTerm*loginShell:true +XTerm*scrollBar: false diff --git a/.config/cmus/rc b/.config/cmus/rc new file mode 100644 index 0000000..08ee4a9 --- /dev/null +++ b/.config/cmus/rc @@ -0,0 +1 @@ +colorscheme xterm-white diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..718707f --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,27 @@ +set mouse=a +set undofile +set textwidth=80 +map Q + +call plug#begin() +Plug 'ap/vim-css-color' " Highlight css colors +Plug 'ctrlpvim/ctrlp.vim' " Fuzzy file finding +Plug 'editorconfig/editorconfig-vim' " Follow editorconfig +Plug 'meain/hima-vim' " Nice color scheme +Plug 'sheerun/vim-polyglot' " Language pack +Plug 'tpope/vim-commentary' " Easily comment +Plug 'tpope/vim-rsi' " Readline bindings +Plug 'tpope/vim-sensible' " Sensible defaults +Plug 'tpope/vim-speeddating' " Modify dates with C-a, C-x +Plug 'tpope/vim-surround' " Easily modify sorrounding characters +call plug#end() + +set termguicolors +colorscheme hima + +nnoremap +nnoremap +nnoremap +nnoremap + +nnoremap :noh diff --git a/.cwmrc b/.cwmrc new file mode 100644 index 0000000..53b6872 --- /dev/null +++ b/.cwmrc @@ -0,0 +1,12 @@ +moveamount 25 +color activeborder purple + +bind-mouse M-3 window-resize + +command firefox firefox-esr +command cmus "xterm -e cmus" +command xterm xterm + +ignore xclock +ignore xload +ignore "Hello, world" # xworld diff --git a/.exrc b/.exrc new file mode 100644 index 0000000..f0c5eac --- /dev/null +++ b/.exrc @@ -0,0 +1,5 @@ +set verbose showmode showmatch autoindent ruler searchincr +set wraplen=80 +set cedit=# +set filec=\ +map g :0 diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..ae26d6e --- /dev/null +++ b/.gitconfig @@ -0,0 +1,11 @@ +[color] + ui = false + branch = false + diff = false + interactive = false + status = false + log = false + +[user] + name = Armaan Bhojwani + email = me@armaanb.net diff --git a/.kshrc b/.kshrc new file mode 100644 index 0000000..d272cd6 --- /dev/null +++ b/.kshrc @@ -0,0 +1,40 @@ +set -o vi +ulimit -c unlimited +alias rsync="openrsync -rv" +export CDPATH=:~ +alias ls="LC_COLLATE=C ls -lhF" +alias rm="rm -iv" +alias cp="cp -riv" +alias mv="mv -iv" +alias grep="grep -in" +alias nl="nl -b all" +alias rclone="rclone -P" +alias mosh="env LC_CTYPE=en_US.UTF-8 mosh" +alias ytmusic="youtube-dl --add-metadata --extract-audio --audio-format vorbis --restrict-filenames -o '%(title)s.%(ext)s'" + +stty dsusp undef + +alias mspdf="groff -Tpdf -M ~/var/docs -ms -macheam" + +rpdf() { + tmp=/tmp/rpdf${RANDOM}.pdf + mspdf $1 > $tmp + zathura $tmp & + fwa $1 | while read; do mspdf $1 > $tmp; done + rm -f $tmp +} + +dosa() { + echo "Dosa! Yum yum yum" + doas $@ +} + +watch() { + inp=$1 + shift + fwa $inp | while read; do $@; done +} + +alias wttr='curl wttr.in?format="%l+%T\n%C+%t\nSunrise:+%S,+Sunset+%s\n"' +alias nv="nvim" +alias dotgit="git --git-dir=~/.local/share/dotfiles --work-tree=~" diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..03ce16c --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,5 @@ +set-option -g status off +set-option -g mouse on +set-option -g set-titles on +set-option -g set-titles-string "#S / #W" +set-window-option -g mode-keys vi -- 2.39.2