Skip to content

Commit

Permalink
updated Readme.md + go fmt ./...
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip Miller committed Oct 19, 2021
1 parent 1b96bf4 commit 6417f2e
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 59 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Table of Contents
* [Enjoy](#enjoy)


![pimp-my-shell.png](imgs/pimp-my-shell.png)
![pimp-my-shell.png](https://github.com/mr-pmillz/pimp-my-shell/blob/master/imgs/pimp-my-shell.png?raw=true)

## Install

Expand Down Expand Up @@ -74,7 +74,7 @@ All these configurations can be modified to your needs
- **Fonts**
- [NerdFonts](https://github.com/ryanoasis/nerd-fonts)
- In Iterm2 Preferences, Profiles -> Text -> Font
- ![imgs/enable-nerd-fonts-iterm2.png](imgs/enable-nerd-fonts-iterm2.png)
- ![enable-nerd-fonts-iterm2.png](https://github.com/mr-pmillz/pimp-my-shell/blob/master/imgs/enable-nerd-fonts-iterm2.png?raw=true)
- **CLI Tools**
- [lsd](https://github.com/Peltoche/lsd)
- [fzf](https://github.com/junegunn/fzf)
Expand Down Expand Up @@ -191,7 +191,7 @@ alias fzfbat="fzf --preview 'bat --style numbers,changes --color=always {}' | he
- because of a shortcut conflict with Mission Control/Spaces on MacOSX
- make sure to uncheck these 2 options in
- System Preferences -> Keyboard -> Shortcuts -> Mission Control, Move left/right a space
![mac-bind-keys.png](imgs/mac-bind-keys.png)
![mac-bind-keys.png](https://github.com/mr-pmillz/pimp-my-shell/blob/master/imgs/mac-bind-keys.png?raw=true)
## Enjoy
12 changes: 6 additions & 6 deletions cheat/cheat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ func TestInstallCheat(t *testing.T) {
wantErr bool
}{
{"Test InstallCheat darwin 1", args{
osType: "darwin",
dirs: dirs,
osType: "darwin",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: nil,
AptInstalledPackages: nil,
BrewInstalledPackages: &localio.BrewInstalled{
Names: []string{"bat"}, CaskFullNames: []string{"bat"}, Taps: []string{"homebrew/core"},
},
}}, false},
}}, false},
{"Test InstallCheat Linux 2", args{
osType: "linux",
dirs: dirs,
osType: "linux",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: &localio.AptInstalled{Name: []string{"bat"}},
BrewInstalledPackages: nil,
Expand Down
10 changes: 5 additions & 5 deletions extra/extra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ func TestInstallExtraPackages(t *testing.T) {
wantErr bool
}{
{"Test InstallExtraPackages darwin 1", args{
osType: "darwin",
dirs: dirs,
osType: "darwin",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: nil,
AptInstalledPackages: nil,
BrewInstalledPackages: &localio.BrewInstalled{
Names: []string{"bat", "lsd", "gnu-sed", "gotop", "yamllint", "git-delta"}, CaskFullNames: []string{"bat"}, Taps: []string{"homebrew/core", "cjbassi/gotop"},
},
}}, false},
{"Test InstallExtraPackages Linux 2", args{
osType: "linux",
dirs: dirs,
osType: "linux",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: &localio.AptInstalled{Name: []string{"bat", "lsd", "gotop", "delta"}},
BrewInstalledPackages: nil,
Expand Down
20 changes: 10 additions & 10 deletions githubapi/githubapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ func TestDownloadLatestRelease(t *testing.T) {
{
"Test DownloadLatestRelease From This Repo linux 1",
args{
osType: "linux",
dirs: dirs,
owner: "mr-pmillz",
repo: "pimp-my-shell",
},
osType: "linux",
dirs: dirs,
owner: "mr-pmillz",
repo: "pimp-my-shell",
},
fmt.Sprintf("%s/%s", dirs.HomeDir, releaseAssets.LinuxAMDFileName),
false,
},
{
"Test DownloadLatestRelease From This Repo darwin 2",
args{
osType: "darwin",
dirs: dirs,
owner: "mr-pmillz",
repo: "pimp-my-shell",
},
osType: "darwin",
dirs: dirs,
owner: "mr-pmillz",
repo: "pimp-my-shell",
},
fmt.Sprintf("%s/%s", dirs.HomeDir, releaseAssets.DarwinAMDFileName),
false,
},
Expand Down
20 changes: 10 additions & 10 deletions localio/localio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestBrewInstallProgram(t *testing.T) {
wantErr bool
}{
{"Test BrewInstallProgram 1", args{brewName: "fzf", binaryName: "fzf", packages: &InstalledPackages{
AptInstalledPackages: nil,
AptInstalledPackages: nil,
BrewInstalledPackages: &BrewInstalled{
Names: []string{"bat"}, CaskFullNames: []string{"bat"}, Taps: []string{"bat"},
},
Expand Down Expand Up @@ -107,7 +107,7 @@ func TestAptInstall(t *testing.T) {
{"Test AptInstall 1", args{packages: &InstalledPackages{
AptInstalledPackages: &AptInstalled{Name: []string{"bat"}},
BrewInstalledPackages: nil,
}, aptName: []string{"xclip"},
}, aptName: []string{"xclip"},
}, false},
}
for _, tt := range tests {
Expand All @@ -131,7 +131,7 @@ func TestNewBrewInstalled(t *testing.T) {
Taps: []string{"homebrew/core", "homebrew/cask-fonts"},
}, false},
}
for _, tt := range tests {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := NewBrewInstalled()
if (err != nil) != tt.wantErr {
Expand Down Expand Up @@ -178,22 +178,22 @@ func TestBrewInstallCaskProgram(t *testing.T) {
wantErr bool
}{
{"Test BrewInstallCaskProgram 1 that already exists", args{packages: &InstalledPackages{
AptInstalledPackages: nil,
AptInstalledPackages: nil,
BrewInstalledPackages: &BrewInstalled{
Names: []string{"font-meslo-lg-nerd-font"}, CaskFullNames: []string{"font-meslo-lg-nerd-font"}, Taps: []string{"homebrew/core"},
},
},
brewFullName: "font-meslo-lg-nerd-font",
brewName: "font-meslo-lg-nerd-font",
brewFullName: "font-meslo-lg-nerd-font",
brewName: "font-meslo-lg-nerd-font",
}, false},
{"Test BrewInstallCaskProgram 2 that doesn't already exist", args{packages: &InstalledPackages{
AptInstalledPackages: nil,
AptInstalledPackages: nil,
BrewInstalledPackages: &BrewInstalled{
Names: []string{"bat"}, CaskFullNames: []string{"bat"}, Taps: []string{"homebrew/core"},
},
},
brewFullName: "font-meslo-lg-nerd-font",
brewName: "font-meslo-lg-nerd-font",
brewFullName: "font-meslo-lg-nerd-font",
brewName: "font-meslo-lg-nerd-font",
}, false},
}
for _, tt := range tests {
Expand All @@ -216,7 +216,7 @@ func TestBrewTap(t *testing.T) {
wantErr bool
}{
{"Test BrewInstallCaskProgram 1 that doesn't already exist", args{packages: &InstalledPackages{
AptInstalledPackages: nil,
AptInstalledPackages: nil,
BrewInstalledPackages: &BrewInstalled{
Names: []string{"bat"}, CaskFullNames: []string{"bat"}, Taps: []string{"homebrew/core"},
},
Expand Down
10 changes: 5 additions & 5 deletions nerdfonts/nerfonts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ func TestInstallNerdFontsLSD(t *testing.T) {
wantErr bool
}{
{"Test InstallNerdFontsLSD darwin 1", args{
osType: "darwin",
dirs: dirs,
osType: "darwin",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: nil,
AptInstalledPackages: nil,
BrewInstalledPackages: &localio.BrewInstalled{
Names: []string{"bat", "lsd", "gnu-sed", "gotop", "yamllint", "git-delta"}, CaskFullNames: []string{"bat"}, Taps: []string{"homebrew/core", "cjbassi/gotop"},
},
}}, false},
{"Test InstallNerdFontsLSD Linux 2", args{
osType: "linux",
dirs: dirs,
osType: "linux",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: &localio.AptInstalled{Name: []string{"bat", "lsd", "gotop", "delta"}},
BrewInstalledPackages: nil,
Expand Down
10 changes: 5 additions & 5 deletions tmux/tmux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ func TestInstallOhMyTmux(t *testing.T) {
wantErr bool
}{
{"Test InstallOhMyTmux darwin 1", args{
osType: "darwin",
dirs: dirs,
osType: "darwin",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: nil,
AptInstalledPackages: nil,
BrewInstalledPackages: &localio.BrewInstalled{
Names: []string{"bat", "lsd", "gnu-sed", "gotop", "yamllint", "git-delta"}, CaskFullNames: []string{"bat"}, Taps: []string{"homebrew/core", "cjbassi/gotop"},
},
}}, false},
{"Test InstallOhMyTmux Linux 2", args{
osType: "linux",
dirs: dirs,
osType: "linux",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: &localio.AptInstalled{Name: []string{"bat", "lsd", "gotop", "delta"}},
BrewInstalledPackages: nil,
Expand Down
22 changes: 11 additions & 11 deletions vim/vim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ func TestInstallVimPlugins(t *testing.T) {
wantErr bool
}{
{"Test VimPlugins darwin 1", args{
osType: "darwin",
dirs: dirs,
}, false},
osType: "darwin",
dirs: dirs,
}, false},
{"Test VimPlugins Linux 2", args{
osType: "linux",
dirs: dirs,
}, false},
osType: "linux",
dirs: dirs,
}, false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand All @@ -53,17 +53,17 @@ func TestInstallVimAwesome(t *testing.T) {
wantErr bool
}{
{"Test InstallOhMyTmux darwin 1", args{
osType: "darwin",
dirs: dirs,
osType: "darwin",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: nil,
AptInstalledPackages: nil,
BrewInstalledPackages: &localio.BrewInstalled{
Names: []string{"bat", "lsd", "gnu-sed", "gotop", "yamllint", "git-delta"}, CaskFullNames: []string{"bat"}, Taps: []string{"homebrew/core", "cjbassi/gotop"},
},
}}, false},
{"Test InstallOhMyTmux Linux 2", args{
osType: "linux",
dirs: dirs,
osType: "linux",
dirs: dirs,
packages: &localio.InstalledPackages{
AptInstalledPackages: &localio.AptInstalled{Name: []string{"bat", "lsd", "gotop", "delta"}},
BrewInstalledPackages: nil,
Expand Down
8 changes: 4 additions & 4 deletions zsh/zsh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ func TestInstallOhMyZsh(t *testing.T) {
wantErr bool
}{
{"Test InstallOhMyZsh darwin 1", args{
osType: "darwin",
dirs: dirs,
osType: "darwin",
dirs: dirs,
}, false},
{"Test InstallOhMyZsh Linux 2", args{
osType: "linux",
dirs: dirs,
osType: "linux",
dirs: dirs,
}, false},
}
for _, tt := range tests {
Expand Down

0 comments on commit 6417f2e

Please sign in to comment.