Last active
August 29, 2015 14:06
-
-
Save JulienBlancher/a97c6bfacffed8533c5f to your computer and use it in GitHub Desktop.
Vim & Shell config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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