Skip to content

Commit

Permalink
Fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Aug 31, 2023
1 parent db18b27 commit 1f7da06
Show file tree
Hide file tree
Showing 8 changed files with 368 additions and 2,414 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"filepath",
"gitignore",
"Gitter",
"gsub",
"Haltarys",
"icanhazip",
"ifconfig",
Expand All @@ -37,6 +38,7 @@
"mylib",
"notpushed",
"nsroot",
"osis",
"ovsx",
"Pacman",
"pgrep",
Expand Down Expand Up @@ -64,6 +66,7 @@
"stty",
"systemctl",
"tnum",
"tolower",
"tprintf",
"tput",
"treadarray",
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 5.7.0

Fixes issue #48

## 5.6.1

- Fixed #47 (thanks to Haltarys)
Expand Down
6 changes: 6 additions & 0 deletions COMMANDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@

- [exit code](#exit-code)

- [os is](#os-is)

- [region , section](#region-,-section)

- [shebang , bash , first line](#shebang-,-bash-,-first-line)
Expand Down Expand Up @@ -1412,6 +1414,10 @@ print text, variable or both [↑](#Commands)

provide an exit code on error [↑](#Commands)

## os is

The OS running on this machine [↑](#Commands)

## region , section

comment out a special region (i.e. variable declarations) [↑](#Commands)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Sometimes doing a job takes more than a `snippet`. `Shellman` has ready to use f

### Latest release Notes

## 5.6.1
## 5.7.0

- `shellcheck` compatible (99.99%).
- Added `array print` snippet.
- `shellcheck` compatible (99.99%)
- Fixes issue #48
5 changes: 5 additions & 0 deletions nsroot/misc/osis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"prefix": "os is",
"body": "OS=$(awk -F'=' '/^ID=/ { gsub(\"\\\"\",\"\",\\$2); print tolower(\\$2) }' /etc/*-release 2> /dev/null)\n",
"description": "The OS running on this machine"
}
Loading

0 comments on commit 1f7da06

Please sign in to comment.