Add some vim templates
This commit is contained in:
6
vim/templates/c_header_notice
Normal file
6
vim/templates/c_header_notice
Normal file
@@ -0,0 +1,6 @@
|
||||
/*=======================================================================================
|
||||
File:
|
||||
Creation Date:
|
||||
Creator: Michael Campagnaro
|
||||
Notice: (C) Copyright $year by Jelly Pixel, Inc. All Rights Reserved.
|
||||
=======================================================================================*/
|
||||
27
vim/templates/skeleton.sh
Normal file
27
vim/templates/skeleton.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
if which tput >/dev/null 2>&1; then
|
||||
ncolors=$(tput colors)
|
||||
fi
|
||||
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
|
||||
RED="$(tput setaf 1)"
|
||||
GREEN="$(tput setaf 2)"
|
||||
YELLOW="$(tput setaf 3)"
|
||||
BLUE="$(tput setaf 4)"
|
||||
BOLD="$(tput bold)"
|
||||
NORMAL="$(tput sgr0)"
|
||||
else
|
||||
RED=""
|
||||
GREEN=""
|
||||
YELLOW=""
|
||||
BLUE=""
|
||||
BOLD=""
|
||||
NORMAL=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
cwd=$PWD
|
||||
platform=`uname` # 'Linux', 'Darwin', etc
|
||||
|
||||
printf "${YELLOW}Platform: $platform${NORMAL}\n"
|
||||
Reference in New Issue
Block a user