From e45166c5259ef144ec153c73c96eb619a684d814 Mon Sep 17 00:00:00 2001 From: Coby Powers Date: Wed, 26 Jan 2022 18:02:45 -0600 Subject: [PATCH] Add sh & ssh configurations --- README.md | 4 ++-- sh/custom/aliases.sh | 32 ++++++++++++++++++++++++++++++++ sh/custom/vars.sh | 5 +++++ ssh/config | 20 ++++++++++++++++++++ 4 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 sh/custom/aliases.sh create mode 100644 sh/custom/vars.sh create mode 100644 ssh/config diff --git a/README.md b/README.md index 24a743a..3fa778c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# linux-toolkit +# Linux Toolkit -A collection of useful files and scripts that make my life a whole lot easier with Linux. \ No newline at end of file +A collection of useful files and scripts that make my life a whole lot easier with Linux. diff --git a/sh/custom/aliases.sh b/sh/custom/aliases.sh new file mode 100644 index 0000000..dc864bf --- /dev/null +++ b/sh/custom/aliases.sh @@ -0,0 +1,32 @@ +ALIASES='/usr/share/zsh/custom/aliases.sh' +VARS='/usr/share/zsh/custom/vars.sh' + +alias grep='grep --color=auto' +alias fgrep='fgrep --color=auto' +alias egrep='egrep --color=auto' + +alias ls='ls --color=auto --group-directories-first -N' +alias ll='ls -l' +alias la='ls -A' +alias lf='ls -F' +alias l.='ls -d .*' +alias lh='ls -lh' +alias lr='ls -R' +alias l='ls' + +alias md='mkdir -p' +alias rd='rm -rf' + +alias q='exit' + +alias reload='source ~/.zshrc' + +alias aliases='cat $ALIASES' +alias vars='cat $VARS' + +alias ealiases='_ vim $ALIASES' +alias evars='_ vim $VARS' + +here() { + grep -r "$@" . +} diff --git a/sh/custom/vars.sh b/sh/custom/vars.sh new file mode 100644 index 0000000..17d0a5f --- /dev/null +++ b/sh/custom/vars.sh @@ -0,0 +1,5 @@ +export SSH_KEYS=~/Private/Keys +export LESS="-RM" + +export MAKEFLAGS=-j8 +export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' diff --git a/ssh/config b/ssh/config new file mode 100644 index 0000000..bdefa52 --- /dev/null +++ b/ssh/config @@ -0,0 +1,20 @@ +HOST bravo + HostName bravohost + User coby + Port 69 + IdentityFile ${SSH_KEYS}/cobybravo/cobybravo +HOST delta + HostName deltahost + User coby + Port 69 + IdentityFile ${SSH_KEYS}/cobydelta/cobydelta +HOST vpn + HostName vpnhost + User coby + Port 69 + IdentityFile ${SSH_KEYS}/cobyvpn/cobyvpn +HOST mail + HostName mailhost + User coby + Port 69 + IdentityFile ${SSH_KEYS}/cobymail/cobymail