mirror of
https://github.com/lukasbestle/projectr.git
synced 2026-10-11 23:10:19 +02:00
18 lines
540 B
Bash
Executable File
18 lines
540 B
Bash
Executable File
#!/bin/bash
|
|
########################################################################
|
|
# 2014-09-07 Lukas Bestle mail@lukasbestle.com
|
|
########################################################################
|
|
# Lists all known project directories.
|
|
#
|
|
# Usage: project_list
|
|
########################################################################
|
|
|
|
# Check if the ~/.project file exists
|
|
if [[ ! -f "$HOME/.projects" ]]; then
|
|
echo -e "\033[31mThere is no \033[34m~/.projects\033[31m file yet.\033[0m" >&2
|
|
exit 1
|
|
fi
|
|
|
|
cat "$HOME/.projects"
|
|
exit $?
|