yeah
This commit is contained in:
parent
9a83ca70b5
commit
7e760950db
3 changed files with 27 additions and 10 deletions
|
|
@ -13,16 +13,24 @@ var usepng bool = false
|
|||
var hascolor bool = true
|
||||
var Customascii = false
|
||||
var asciidir string
|
||||
var asciiforced = false
|
||||
var forceddistro string
|
||||
|
||||
func Gethn() string {
|
||||
cmd := exec.Command("whoami")
|
||||
shell, _ := cmd.Output()
|
||||
return strings.Replace(string(shell), "\n", "", -1)
|
||||
}
|
||||
func Initargs() {
|
||||
args = os.Args[1:]
|
||||
for _, argument := range args {
|
||||
if strings.HasPrefix(argument, "--ascii=") {
|
||||
cmd := exec.Command("whoami")
|
||||
shell, _ := cmd.Output()
|
||||
funny := strings.Replace(string(shell), "\n", "", -1)
|
||||
Customascii = true
|
||||
asciidir = strings.ReplaceAll(argument[8:], "~", "/home/"+funny)
|
||||
asciidir = strings.ReplaceAll(argument[8:], "~", "/home/"+Gethn())
|
||||
}
|
||||
if strings.HasPrefix(argument, "--distro=") {
|
||||
asciiforced = true
|
||||
forceddistro = argument[9:]
|
||||
} else if strings.HasPrefix(argument, "--") {
|
||||
switch argument {
|
||||
case "--nouwu":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue