Add sh & ssh configurations
This commit is contained in:
@ -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.
|
32
sh/custom/aliases.sh
Normal file
32
sh/custom/aliases.sh
Normal file
@ -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 "$@" .
|
||||
}
|
5
sh/custom/vars.sh
Normal file
5
sh/custom/vars.sh
Normal file
@ -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'
|
20
ssh/config
Normal file
20
ssh/config
Normal file
@ -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
|
Reference in New Issue
Block a user