aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Hostname.vb
diff options
context:
space:
mode:
authorEverythingWindows <[email protected]>2022-11-16 08:07:44 +0700
committerEverythingWindows <[email protected]>2022-11-16 08:07:44 +0700
commit5aceb7cf1efbfa21ab6a56e2e0cde13774217f97 (patch)
tree7eb03754a5e4f5fd85c415473b54c629cf404e1c /ShiftOS-TheRevival/Terminal Applications/Internal/Com_Hostname.vb
parent8b879eb638cbb842c723b64f53b04d30d931a4f0 (diff)
downloadshiftos-therevival-old-5aceb7cf1efbfa21ab6a56e2e0cde13774217f97.tar.gz
shiftos-therevival-old-5aceb7cf1efbfa21ab6a56e2e0cde13774217f97.tar.bz2
shiftos-therevival-old-5aceb7cf1efbfa21ab6a56e2e0cde13774217f97.zip
Moving more commands from TerminalAPI into its own module
Diffstat (limited to 'ShiftOS-TheRevival/Terminal Applications/Internal/Com_Hostname.vb')
-rw-r--r--ShiftOS-TheRevival/Terminal Applications/Internal/Com_Hostname.vb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Hostname.vb b/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Hostname.vb
new file mode 100644
index 0000000..8903069
--- /dev/null
+++ b/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Hostname.vb
@@ -0,0 +1,6 @@
+Module Com_Hostname
+ Public Sub Hostname()
+ Strings.ComputerInfo(0) = command.Substring(command.LastIndexOf(" ") + 1, command.Length - (command.LastIndexOf(" ") + 1))
+ Terminal_AssignPrompt()
+ End Sub
+End Module