Initial Commit of stdheader for 42lausanne
This commit is contained in:
26
set_header.sh
Executable file
26
set_header.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
# ./set_header.sh
|
||||
|
||||
# Set variables
|
||||
|
||||
if [ ! -z "$USER" ]
|
||||
then
|
||||
echo 'export USER=`/usr/bin/whoami`' >> ~/.zshrc
|
||||
fi
|
||||
|
||||
if [ ! -z "$GROUP" ]
|
||||
then
|
||||
echo 'export GROUP=`/usr/bin/id -gn ${USER}`' >> ~/.zshrc
|
||||
fi
|
||||
|
||||
if [ ! -z "$MAIL" ]
|
||||
then
|
||||
echo 'export MAIL="${USER}@student.42lausanne.ch"' >> ~/.zshrc
|
||||
fi
|
||||
|
||||
test -d ~/.vim/plugin || mkdir -p ~/.vim/plugin
|
||||
|
||||
# Add stdheader to vim plugins
|
||||
cp vim/stdheader.vim ~/.vim/plugin/
|
||||
|
||||
source ~/.zshrc
|
||||
Reference in New Issue
Block a user