Skip to content

Instantly share code, notes, and snippets.

View dellow's full-sized avatar

Stew Dellow dellow

  • J&S Accessories
  • UK
View GitHub Profile
#!/bin/bash
functionName() {
}
PS3='Please select an option: '
options=("Reset database and keys (clean install)" "Reinstall all composer dependencies" "Both" "Quit")
select opt in "${options[@]}"
do
case $opt in
@dellow
dellow / .bash_aliases
Last active July 19, 2018 16:10
Dot Files
# ---------------------------------------------------------------------------
# System aliases.
# ---------------------------------------------------------------------------
#
# Color support.
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
#!/bin/bash
# Check if a directory has been supplied.
if [ -z "$1" ]; then
echo "You must supply a directory."
exit 0
# Check directory exists.
elif [ ! -d "$1" ]; then
echo "That directory does not exist."
exit 0