Skip to content

Commit

Permalink
Formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Aug 22, 2017
1 parent bbc1154 commit fd7ccd4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
22 changes: 11 additions & 11 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ func getValidCwd() string {
}

var modules = map[string](func(*powerline)){
"cwd": segmentCwd,
"cwd": segmentCwd,
"docker": segmentDocker,
"exit": segmentExitCode,
"git": segmentGit,
"hg": segmentHg,
"host": segmentHost,
"jobs": segmentJobs,
"perms": segmentPerms,
"root": segmentRoot,
"ssh": segmentSsh,
"user": segmentUser,
"venv": segmentVirtualEnv,
"exit": segmentExitCode,
"git": segmentGit,
"hg": segmentHg,
"host": segmentHost,
"jobs": segmentJobs,
"perms": segmentPerms,
"root": segmentRoot,
"ssh": segmentSsh,
"user": segmentUser,
"venv": segmentVirtualEnv,
}

func main() {
Expand Down
2 changes: 1 addition & 1 deletion segment-cwd.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"fmt"
"os"
"strings"
"fmt"
)

const ellipsis = "\u2026"
Expand Down
6 changes: 3 additions & 3 deletions segment-git.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package main

import (
"os"
"fmt"
"regexp"
"os"
"os/exec"
"strings"
"regexp"
"strconv"
"strings"
)

type repoStats struct {
Expand Down
6 changes: 3 additions & 3 deletions segment-hg.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"fmt"
"os/exec"
"strings"
"fmt"
)

func getHgStatus() (bool, bool, bool) {
Expand Down Expand Up @@ -61,9 +61,9 @@ func segmentHg(p *powerline) {
}

p.appendSegment(segment{
content: content,
content: content,
foreground: foreground,
background: background,
})
}
}
}
6 changes: 3 additions & 3 deletions segment-jobs.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package main

import (
"fmt"
"os"
"os/exec"
"strings"
"strconv"
"fmt"
"strings"
)

func segmentJobs(p *powerline) {
Expand All @@ -23,7 +23,7 @@ func segmentJobs(p *powerline) {

if nJobs > 0 {
p.appendSegment(segment{
content: fmt.Sprintf(" %d ", nJobs),
content: fmt.Sprintf(" %d ", nJobs),
foreground: p.theme.JobsFg,
background: p.theme.JobsBg,
})
Expand Down

0 comments on commit fd7ccd4

Please sign in to comment.