From 5f6fc1da0399c4bf4eb7ee7167c26731b21d66fb Mon Sep 17 00:00:00 2001 From: randomuser Date: Sun, 6 Feb 2022 04:58:21 +0000 Subject: [PATCH] more dotfiles! --- Makefile | 8 +++++++- bash/bashrc | 8 ++++++++ bash/profile | 13 +++++++++++++ git/config | 3 +++ ssh/config | 6 ++++++ 5 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 bash/bashrc create mode 100644 bash/profile create mode 100644 git/config create mode 100644 ssh/config diff --git a/Makefile b/Makefile index cb79fb2..c919772 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ LOCATION="$(HOME)/.config" -install: install_bspwm install_nvim install_sx install_sxhkd install_vimb install_zathura install_wyebadblock install_simplestatus environment +install: install_bspwm install_nvim install_sx install_sxhkd install_vimb install_zathura install_wyebadblock install_simplestatus install_bash install_ssh install_git environment install_bspwm: cp -r bspwm $(LOCATION) install_nvim: @@ -16,5 +16,11 @@ install_wyebadblock: cp -r wyebadblock $(LOCATION) install_simplestatus: cp -r simplestatus $(LOCATION) +install_bash: + cp -r bash $(LOCATION) +install_ssh: + cp -r ssh $(LOCATION) +install_git: + cp -r git $(LOCATION) environment: sh environ diff --git a/bash/bashrc b/bash/bashrc new file mode 100644 index 0000000..7c794c2 --- /dev/null +++ b/bash/bashrc @@ -0,0 +1,8 @@ +#!/bin/bash + +# some housekeeping +set -o vi +shopt -s autocd + +# ssh keeping tidy +alias ssh="ssh -F $HOME/.config/ssh/config" diff --git a/bash/profile b/bash/profile new file mode 100644 index 0000000..e6dde08 --- /dev/null +++ b/bash/profile @@ -0,0 +1,13 @@ +#!/bin/bash + +# program exports to keep the $HOME neat and tidy +# bash +export HISTFILE="$HOME/.config/bash/hist" +export HISTFILESIZE=3000 + +# less +export LESSHISTFILE="-" + +# source the bashrc(s) +[ -f $HOME/.config/bash/bashrc ] && . $HOME/.config/bash/bashrc +[ -f $HOME/.bashrc ] && . $HOME/.bashrc diff --git a/git/config b/git/config new file mode 100644 index 0000000..9dcf062 --- /dev/null +++ b/git/config @@ -0,0 +1,3 @@ +[user] + email = randomuser@tilde.club + name = randomuser diff --git a/ssh/config b/ssh/config new file mode 100644 index 0000000..aa11ec0 --- /dev/null +++ b/ssh/config @@ -0,0 +1,6 @@ +IdentityFile ~/.local/share/ssh/id_rsa +IdentityFile ~/.local/share/ssh/id_dsa +IdentityFile ~/.local/share/ssh/id_ecdsa +IdentityFile ~/.local/share/ssh/id_ed25519 + +UserKnownHostsFile ~/.local/share/ssh/known_hosts.d/%k