From fc9fdcede664496ada98a081af0773ed08d06627 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Thu, 30 Dec 2021 22:45:12 -0500 Subject: [PATCH] Add "sysadmin" config--sh/git/vi/tmux I haven't lost anything in the sh/git/vi department since the great purge, but my tmux config is looking pretty sparse still. For a stopgap "sysadmin" usage though, it's ready to be committed and iterated on. ed for EDITOR for funsies :) --- .exrc | 6 ++++++ .gitconfig | 22 ++++++++++++++++++++++ .shrc | 10 ++++++++++ .tmux.conf | 7 +++++++ README | 14 ++++++++++++++ 5 files changed, 59 insertions(+) create mode 100644 .exrc create mode 100644 .gitconfig create mode 100644 .shrc create mode 100644 .tmux.conf diff --git a/.exrc b/.exrc new file mode 100644 index 0000000..b38d360 --- /dev/null +++ b/.exrc @@ -0,0 +1,6 @@ +" vi(1) config +" NOTE: purposefully limited to vim(1) compatible +" so that the lack of a ~/.vimrc doesn't cause errors +" if this file is chosen for vim initialization too. +set ruler +set autoindent diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..c69e14f --- /dev/null +++ b/.gitconfig @@ -0,0 +1,22 @@ +[core] + editor = ed + +[user] + email = alex@alexkarle.com + name = Alex Karle + +[alias] + co = checkout + b = branch + s = status --short + ss = status + p = push + l = log --stat + a = add + rb = rebase + rs = reset + d = diff + c = commit + +[pull] + ff = only diff --git a/.shrc b/.shrc new file mode 100644 index 0000000..531c6e9 --- /dev/null +++ b/.shrc @@ -0,0 +1,10 @@ +# .shrc -- interactive sh/ksh config (via $ENV) +PS1='\u@\h:\w \$ ' +HISTFILE="$HOME/.sh_history" +HISTSIZE=100000 + +export EDITOR=ed +export VISUAL=vi + +alias ll='ls -lahF' +alias g='git' diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..92e340e --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,7 @@ +# .tmux.conf +set-option -g prefix C-a +unbind-key C-b +bind-key C-a send-prefix + +# Less delay on pressing escape (for vim) +set-option -sg escape-time 10 diff --git a/README b/README index b5d7d10..5151d27 100644 --- a/README +++ b/README @@ -11,3 +11,17 @@ I wanted to start from scratch to both: Dotfiles have a funny way of going stale. Here's to a fresh start! + +Usage: +------ +There's really two settings where these +are used: + +* System administration -- really only + need shell / primitive vi config +* Programming -- I need the whole 9 yards + for my dayjob. Linting, completion, etc + +The first is mostly complete (I don't need +much), but the second is a work-in-progress +as I retool under a OSI-approved license! -- libgit2 1.1.1