diff --git a/README.md b/README.md index a865648..fe3b12e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) @@ -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 diff --git a/cheat/cheat_test.go b/cheat/cheat_test.go index 7ce7ec9..ff34e3a 100644 --- a/cheat/cheat_test.go +++ b/cheat/cheat_test.go @@ -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, diff --git a/extra/extra_test.go b/extra/extra_test.go index 4356c4f..a6ac5d8 100644 --- a/extra/extra_test.go +++ b/extra/extra_test.go @@ -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, diff --git a/githubapi/githubapi_test.go b/githubapi/githubapi_test.go index ab56469..227c086 100644 --- a/githubapi/githubapi_test.go +++ b/githubapi/githubapi_test.go @@ -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, }, diff --git a/localio/localio_test.go b/localio/localio_test.go index 73672c4..dbb93f8 100644 --- a/localio/localio_test.go +++ b/localio/localio_test.go @@ -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"}, }, @@ -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 { @@ -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 { @@ -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 { @@ -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"}, }, diff --git a/nerdfonts/nerfonts_test.go b/nerdfonts/nerfonts_test.go index ea49b80..7346015 100644 --- a/nerdfonts/nerfonts_test.go +++ b/nerdfonts/nerfonts_test.go @@ -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, diff --git a/tmux/tmux_test.go b/tmux/tmux_test.go index ec49232..bea9615 100644 --- a/tmux/tmux_test.go +++ b/tmux/tmux_test.go @@ -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, diff --git a/vim/vim_test.go b/vim/vim_test.go index b52849d..6f427d1 100644 --- a/vim/vim_test.go +++ b/vim/vim_test.go @@ -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) { @@ -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, diff --git a/zsh/zsh_test.go b/zsh/zsh_test.go index 8690675..661de0d 100644 --- a/zsh/zsh_test.go +++ b/zsh/zsh_test.go @@ -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 {