summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-06-28 13:12:53 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-06-28 13:13:44 -0400
commitc7b4cdaa1615c95469f19aed2e6257cd8c17df7a (patch)
treec53d6baca8233eda927a4a0038e6dbceab922f4f
downloaddotfiles-c7b4cdaa1615c95469f19aed2e6257cd8c17df7a.tar.gz
initial commit
-rw-r--r--Makefile14
-rw-r--r--git/.gitconfig35
-rw-r--r--readline/.inputrc2
-rw-r--r--sh/.shrc25
-rw-r--r--tmux/.config/tmux/tmux.conf22
-rw-r--r--vi/.nexrc16
-rw-r--r--vim/.vimrc61
7 files changed, 175 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6da2664
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+PACKAGES != find . -type d -depth 1 -not -name .git -exec basename {} \;
+STOW_ARGS = --verbose --no-folding --target ${HOME}
+
+.PHONY: dry-run
+dry-run:
+ stow --no --restow ${STOW_ARGS} ${PACKAGES}
+
+.PHONY: install
+install:
+ stow --restow ${STOW_ARGS} ${PACKAGES}
+
+.PHONY: uninstall
+uninstall:
+ stow --delete ${STOW_ARGS} ${PACKAGES}
diff --git a/git/.gitconfig b/git/.gitconfig
new file mode 100644
index 0000000..69405ed
--- /dev/null
+++ b/git/.gitconfig
@@ -0,0 +1,35 @@
+[user]
+ name = Cullum Smith
+ email = cullum@sacredheartsc.com
+
+[core]
+ pager = less -FX
+ askPass =
+
+[color]
+ ui = auto
+
+[diff]
+ mnemonicPrefix = true
+ colorMoved = zebra
+
+[grep]
+ extendedRegexp = true
+
+[merge]
+ conflictStyle = diff3
+
+[fetch]
+ prune = true
+
+[pull]
+ ff = only
+
+[status]
+ showUntrackedFiles = all
+
+[tag]
+ sort = version:refname
+
+[http]
+ emptyAuth = true
diff --git a/readline/.inputrc b/readline/.inputrc
new file mode 100644
index 0000000..8638ed5
--- /dev/null
+++ b/readline/.inputrc
@@ -0,0 +1,2 @@
+"\e[A": history-search-backward
+"\e[B": history-search-forward
diff --git a/sh/.shrc b/sh/.shrc
new file mode 100644
index 0000000..ee2d5ac
--- /dev/null
+++ b/sh/.shrc
@@ -0,0 +1,25 @@
+reset=$'\e[0m'
+blue=$'\e[1;94m'
+green=$'\e[0;32m'
+PS1="\[${green}\]\u@\h\[${reset}\]:\[${blue}\]\W\[${green}\]\$\[${reset}\] "
+unset reset blue green
+
+export CLICOLOR=1
+export PAGER=less
+export LESS='-iMRS -x2'
+export EDITOR=vim
+export LSCOLORS=DxfxgxgxcxxbxbaCacADAd
+
+alias ls='ls -FHh'
+alias ll='ls -l'
+alias la='ls -la'
+alias ..='cd ..'
+alias ...='cd ../..'
+alias mkdir='mkdir -p'
+alias df='df -h'
+alias du='du -ch'
+
+bind ^[[A ed-search-prev-history
+bind ^[[B ed-search-next-history
+bind "\\e[1;5C" em-next-word
+bind "\\e[1;5D" ed-prev-word
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf
new file mode 100644
index 0000000..3192bf2
--- /dev/null
+++ b/tmux/.config/tmux/tmux.conf
@@ -0,0 +1,22 @@
+set -g default-terminal "tmux-256color"
+set -s escape-time 0
+setw -g mode-keys vi
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+bind-key -T copy-mode-vi 'v' send -X begin-selection
+bind-key -T copy-mode-vi 'y' send -X copy-selection
+
+# zenburn
+setw -g clock-mode-colour colour117
+setw -g mode-style bold,fg=colour117,bg=colour238
+set -g status-style bg=colour235,fg=colour248
+setw -g window-status-current-style bold,fg=colour223,bg=colour237
+set -g message-style bold,fg=colour117,bg=colour235
+
+set-option -g set-titles on
+set-option -g set-titles-string "tmux [#S:#I] #T"
+set-option -g status-right "#(whoami)@#h #[fg=colour187,bold]%a %Y-%m-%d %H:%M"
+set -g status-right-length 50
+set -g status-left-length 20
diff --git a/vi/.nexrc b/vi/.nexrc
new file mode 100644
index 0000000..7674789
--- /dev/null
+++ b/vi/.nexrc
@@ -0,0 +1,16 @@
+set autoindent
+set cedit=\
+set expandtab
+set extended
+set filec=\
+set iclower
+set leftright
+set report=1
+set ruler
+set searchincr
+set shiftwidth=2
+set showmatch
+set showmode
+set tabstop=2
+set tildeop
+set verbose
diff --git a/vim/.vimrc b/vim/.vimrc
new file mode 100644
index 0000000..2543ddd
--- /dev/null
+++ b/vim/.vimrc
@@ -0,0 +1,61 @@
+syntax enable
+filetype on
+filetype plugin on
+filetype indent on
+
+set ruler
+set encoding=utf-8 " utf8 by default for new files
+set nocompatible " it's not 1985
+set nobackup " don't create ~backup files
+set number " show line numbers
+set nowrap " disable wrapping
+set cursorline " highlight current line
+set ttyfast " improve scrolling speed
+set lazyredraw " improve draw speed
+set foldlevelstart=99 " unfold everything by default
+set noerrorbells " disable bell/flash
+set history=1000 " command history length
+set so=10 " horizontal scrollover
+set backspace=2 " make backspace work normally
+set tabpagemax=15 " max 15 tabs open
+set laststatus=2 " always display statusbar
+set previewheight=3 " maximum height for preview window
+set showmatch " highlight matching brace
+set updatetime=750 " improve latency for plugins
+set showcmd " show commands as they're being input
+set autoread " automatically reload when changed externally
+set hlsearch " highlight all search matches
+set incsearch " start searching before hitting 'enter'
+set ignorecase " perform case-insensitive search
+set smartcase " ...unless search term has a capital letter
+set hidden " hide buffers instead of closing them
+set wildmenu " autocomplete for command menu
+set modelines=1 " obey file modelines
+set timeoutlen=1000 " no key delays
+set ttimeoutlen=0 " no key delays
+set completeopt=menu,menuone,longest,preview
+
+set smartindent " autoindent
+set expandtab " replace hard tabs with spaces
+set shiftwidth=2 " tab width = 2 spaces
+set tabstop=2
+set softtabstop=2
+
+noremap H :bp<CR>
+noremap L :bn<CR>
+set pastetoggle=<F2> " F2 to toggle paste mode
+" format paragraph
+nnoremap <leader>q gqip
+nnoremap <leader><space> :noh<cr>
+
+if empty(glob('~/.vim/autoload/plug.vim'))
+ silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
+ \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+ autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
+endif
+
+call plug#begin('~/.vim/plugged')
+Plug 'vim-scripts/Zenburn'
+call plug#end()
+
+colors zenburn