Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Author: S Firth
# Created: 21/06/23
# Last modified: 28/09/23
# Version: 0.3
# Description: List files and output to file: simple list, recursive, by file type
# Usage: alf [-r|h|t]
echo "loaded list function"
@steve-core
steve-core / prompts.sh
Created September 27, 2023 10:23
Bash prompt switch
## prompts ##
export PS1="\[\e[32m\]\W\[\e[m\] \[\e[35m\]\\$\[\e[m\] "
function prompts() {
printf "\n$(tput setaf 5)Choose prompt style$(tput sgr0)\n"
printf "1) Directory only\n2) Git branch and directory\n3) $ only\nq) Quit\n"
read choice
case $choice in
@steve-core
steve-core / Bash gulp time logger.sh
Last active September 27, 2023 10:24
Simple time logger to wrap around Gulp
#!/usr/bin/env bash
#title :gulp_time_logger.sh
#description :creates timelog for Gulp use
#date :22/05/2023
#version :0.3
echo "$(tput setaf 4)Gulp time logger v0.3$(tput sgr0)"
project_dir=""