Skip to content

Commit

Permalink
.bashrc added getcpid
Browse files Browse the repository at this point in the history
  • Loading branch information
fb929 committed Sep 26, 2023
1 parent 6119e01 commit 282e4d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,11 @@ fi

# terraform
export TF_PLUGIN_CACHE_DIR="$HOME/.terraform.d/plugin-cache"

# child process pids
function getcpid() {
cpids=$( pgrep -P $1| xargs )
for cpid in $cpids; do
getcpid $cpid
done
}

0 comments on commit 282e4d0

Please sign in to comment.