Add script
This commit is contained in:
parent
9b1bad7c81
commit
c271bd4167
1 changed files with 9 additions and 0 deletions
9
swline
Executable file
9
swline
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/env python3
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import pwd
|
||||||
|
import platform
|
||||||
|
username = pwd.getpwuid(os.getuid()).pw_name
|
||||||
|
session = "@"
|
||||||
|
status = "\\[\\033[34m\\] UwU" if int(sys.argv[1]) == 0 else (f"\\[\\033[31m\\] >m<" if int(sys.argv[1]) == 127 else f"\\[\\033[31m\\] OwO {sys.argv[1]}")
|
||||||
|
print(f"\\[\\033[01;32m\\]{username} {session} {platform.node()}\\n\\[\\033[01;34m\\]\\w\\[\\033[00m\\]{status} \\[\\033[00m\\]\\[\\033[32m\\]$\\[\\033[00m\\] ")
|
Loading…
Reference in a new issue