mirror of
https://github.com/opensiriusfox/bashrc.d.git
synced 2025-06-16 20:31:15 -07:00
added remote shell detection
This commit is contained in:
parent
b21b623273
commit
958985df83
2 changed files with 28 additions and 0 deletions
|
@ -114,3 +114,10 @@ function rv() {
|
|||
printf ' RV=%d \e[0m\n' $RV >&2
|
||||
}
|
||||
|
||||
function hexy() {
|
||||
python3 -c 'import sys
|
||||
for v in sys.argv[1:]:
|
||||
print("{:02x}".format(int(v)), end="")
|
||||
print("")
|
||||
' $*
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue