Skip to content

Commit 7ab297f

Browse files
whoami
1 parent 44bb8d5 commit 7ab297f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

dot/tools.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ install() {
2020
"${DOT_TOOLS_PATH}/${1}.sh" "install"
2121
}
2222

23+
whoami() {
24+
assert "$1"
25+
"${DOT_TOOLS_PATH}/${1}.sh" "whoami"
26+
}
27+
2328
ls() {
2429
count=$(find "${DOT_TOOLS_PATH}" -name "*.sh" | wc -l)
2530
if [ $count -eq 0 ]; then return; fi

rc/tools.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ dot_tools_info() {
66

77
dot_tools_install() {
88
"${DOT_DOT_PATH}/tools.sh" "install" "$1"
9-
}
9+
}
10+
11+
dot_tools_whoami() {
12+
"${DOT_DOT_PATH}/tools.sh" "whoami" "$1"
13+
}
1014

1115
dot_tools_init() {
1216
for file in ${DOT_TOOLS_PATH}/*_init; do

0 commit comments

Comments
 (0)