Skip to content

Commit

Permalink
expand env in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
itsManjeet committed Jan 1, 2025
1 parent 703e4a0 commit c1b5f6f
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 195 deletions.
Empty file added apps/files/go.sum
Empty file.
30 changes: 1 addition & 29 deletions apps/files/main.go
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
package main

import (
"image/color"
"log"
"os"

"rlxos/graphics/pkg/app"
"rlxos/graphics/pkg/canvas"
"rlxos/graphics/pkg/event"
"rlxos/graphics/pkg/widget"
)

type Box struct {
widget.BaseWidget
color color.Color
}

func (b *Box) Draw(c canvas.Canvas) {}

func (b *Box) Update(e event.Event) {}

func main() {
if err := app.Run(&Box{
color: color.NRGBA{
R: 255,
A: 255,
},
}); err != nil {
log.Println("ERROR:", err)
os.Exit(1)
}

}
4 changes: 3 additions & 1 deletion core/cmd/shell/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (

func main() {
HOME := os.Getenv("HOME")
_ = os.Setenv("SHELL", os.Args[0])
reader, err := readline.NewEx(&readline.Config{
Prompt: ":> ",
Prompt: "> ",
HistoryFile: filepath.Join(HOME, ".history"),
EOFPrompt: "exit",
HistorySearchFold: true,
Expand All @@ -31,6 +32,7 @@ func main() {
for {

line, _ := reader.Readline()
line = os.ExpandEnv(line)

args := strings.Fields(line)
if len(args) == 0 {
Expand Down
1 change: 1 addition & 0 deletions devices/generic/x86_64/toolchain.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL=y
BR2_PACKAGE_MESA3D_OSMESA_GALLIUM=y
BR2_PACKAGE_MESA3D_OPENGL_GLX=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_VULKAN_TOOLS=y
BR2_PACKAGE_XORG7=y
Expand Down
4 changes: 0 additions & 4 deletions graphics/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
module rlxos/graphics

go 1.22

require github.com/rajveermalviya/go-wayland/wayland v0.0.0-20230130181619-0ad78d1310b2

require golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1 // indirect
4 changes: 0 additions & 4 deletions graphics/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
github.com/rajveermalviya/go-wayland/wayland v0.0.0-20230130181619-0ad78d1310b2 h1:tRhbehjSCwQSZL7A2AoZlKrDYhZzaPIAcpnhfaUc0Tw=
github.com/rajveermalviya/go-wayland/wayland v0.0.0-20230130181619-0ad78d1310b2/go.mod h1:PXhW/GoWcMBeiZ39ZdgoMs/xduJEEUE+kxUBB2Kwd+M=
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1 h1:kwrAHlwJ0DUBZwQ238v+Uod/3eZ8B2K5rYsUHBQvzmI=
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
128 changes: 0 additions & 128 deletions graphics/pkg/app/app.go

This file was deleted.

3 changes: 0 additions & 3 deletions graphics/pkg/canvas/canvas.go

This file was deleted.

4 changes: 0 additions & 4 deletions graphics/pkg/event/event.Event.go

This file was deleted.

22 changes: 0 additions & 22 deletions graphics/pkg/widget/widget.go

This file was deleted.

0 comments on commit c1b5f6f

Please sign in to comment.