Skip to content

Instantly share code, notes, and snippets.

@JulienBlancher
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JulienBlancher/a97c6bfacffed8533c5f to your computer and use it in GitHub Desktop.
Save JulienBlancher/a97c6bfacffed8533c5f to your computer and use it in GitHub Desktop.
Vim & Shell config
#!/bin/bash
trap "echo 'This will be notified.'" SIGHUP SIGINT SIGTERM
echo "Name:"
read NAME
while [ -z "$NAME" ]
do
printf '\033[0;31;40m'
echo "Name mandatory. Please enter your name:"
printf '\033[0m'
read NAME
done
echo "Visit purpose:"
read PURPOSE
while [ -z "$PURPOSE" ]
do
printf '\033[0;31;40m'
echo "The visit purpose is mandatory. Please enter your visit purpose:"
printf '\033[0m'
read PURPOSE
done
/etc/fail2ban/modules/pushbullet-nico push all note "[`cat /etc/hostname`] $NAME just login as `whoami`. Purpose: $PURPOSE" > /dev/null
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;44m\]\w\[\033[00m\]\$ '
alias ls='ls --color=auto'
alias ll='ls -alh'
alias la='ls -Ah'
alias l='ls -lh --color=auto'
if [ -f ~/.bash_identification ]; then
. ~/.bash_identification
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;44m\]\w\[\033[00m\]\$ '
alias ls='ls --color=auto'
alias ll='ls -alh'
alias la='ls -Ah'
alias l='ls -lh --color=auto'
if [ -f ~/.bash_identification ]; then
. ~/.bash_identification
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
set mouse=a
syntax on
se nu
filetype indent plugin on
set showmatch
set tabstop=4
set shiftwidth=4
set softtabstop=4
set ruler
set autoindent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment