config/shell: reformat to tabs
This commit is contained in:
parent
6c0fb2482e
commit
49179953f6
|
@ -114,7 +114,8 @@ swap() {
|
||||||
t() {
|
t() {
|
||||||
if test "$#" -eq 0 && which tn >/dev/null
|
if test "$#" -eq 0 && which tn >/dev/null
|
||||||
then tn
|
then tn
|
||||||
else if test "$1" = "do"
|
else
|
||||||
|
if test "$1" = "do"
|
||||||
then test "$2" -gt 0 2>/dev/null && task mod sched:today "${@:2}" || task add sched:today "${@:2}"
|
then test "$2" -gt 0 2>/dev/null && task mod sched:today "${@:2}" || task add sched:today "${@:2}"
|
||||||
else task "$@"
|
else task "$@"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# A tool for managing multiple git projects quickly. Simply source this in your bashrc or zshrc.
|
# A tool for managing multiple git projects quickly. Simply source this in your bashrc or zshrc.
|
||||||
# This assumes a common directory that contains all projects. Subfolders are detected as well.
|
# This assumes a common directory that contains all projects. Subfolders are detected as well.
|
||||||
# You can set $projects_dir before or after sourcing this script, or adjust it below.
|
# You can set $projects_dir before or after sourcing this script, or adjust it below.
|
||||||
# The standard command I execute daily is "p status", it updates all projects and shows their status.
|
# The regular command is "p status" to update all projects and show their status.
|
||||||
|
|
||||||
# Common root for all projects
|
# Common root for all projects
|
||||||
projects_dir=${projects_dir:-$DATA/4-incubator/dev}
|
projects_dir=${projects_dir:-$DATA/4-incubator/dev}
|
||||||
|
@ -32,7 +32,8 @@ projects() {
|
||||||
test "$1" = "--all" && all="$1" && shift
|
test "$1" = "--all" && all="$1" && shift
|
||||||
case $1 in
|
case $1 in
|
||||||
"build")
|
"build")
|
||||||
# Builds all found gradle projects in parallel and then prints the results in batches - WARNING: This is likely to considerably slow down your computer!
|
# Builds all found gradle projects in parallel and then prints the results in batches
|
||||||
|
# WARNING: This is likely to considerably slow down your computer!
|
||||||
listprojects $all | while read d; do
|
listprojects $all | while read d; do
|
||||||
if test "$(find $d -maxdepth 1 -name "*gradle*")"; then
|
if test "$(find $d -maxdepth 1 -name "*gradle*")"; then
|
||||||
builtin cd $d
|
builtin cd $d
|
||||||
|
|
Loading…
Reference in New Issue