mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-25 01:33:28 +01:00
Update golden names to fork on OS
This commit is contained in:
parent
f1993cf1d2
commit
56d1401966
@ -3196,7 +3196,7 @@ func TestInstallSkipConfigModification(t *testing.T) {
|
||||
|
||||
// Install and check that it gave info on how to configure the shell
|
||||
out := tester.RunInteractiveShell(t, ` /tmp/client install --skip-config-modification | grep -v "secret hishtory key"`)
|
||||
testutils.CompareGoldens(t, out, "TestInstallSkipConfigModification-InstallOutput")
|
||||
testutils.CompareGoldens(t, out, "TestInstallSkipConfigModification-InstallOutput-"+runtime.GOOS)
|
||||
|
||||
// Check that the shell config files weren't configured
|
||||
homedir, err := os.UserHomeDir()
|
||||
|
@ -1,23 +0,0 @@
|
||||
Please edit "~/.bashrc" to add:
|
||||
|
||||
```
|
||||
# Hishtory Config:
|
||||
export PATH="$PATH:/Users/david/.hishtory"
|
||||
source /Users/david/.hishtory/config.sh
|
||||
```
|
||||
|
||||
Please edit "~/.zshrc" to add:
|
||||
|
||||
```
|
||||
# Hishtory Config:
|
||||
export PATH="$PATH:/Users/david/.hishtory"
|
||||
source /Users/david/.hishtory/config.zsh
|
||||
```
|
||||
|
||||
Please edit "~/.config/fish/config.fish" to add:
|
||||
|
||||
```
|
||||
# Hishtory Config:
|
||||
export PATH="$PATH:/Users/david/.hishtory"
|
||||
source /Users/david/.hishtory/config.fish
|
||||
```
|
25
client/testdata/TestInstallSkipConfigModification-InstallOutput-darwin
vendored
Normal file
25
client/testdata/TestInstallSkipConfigModification-InstallOutput-darwin
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
Please edit "~/.bashrc" to add:
|
||||
|
||||
```
|
||||
# Hishtory Config:
|
||||
export PATH="$PATH:/Users/runner/.hishtory"
|
||||
source /Users/runner/.hishtory/config.sh
|
||||
```
|
||||
|
||||
Please edit "~/.bash_profile" to add:
|
||||
|
||||
```
|
||||
# Hishtory Config:
|
||||
export PATH="$PATH:/Users/runner/.hishtory"
|
||||
source /Users/runner/.hishtory/config.sh
|
||||
```
|
||||
|
||||
Please edit "~/.zshrc" to add:
|
||||
|
||||
```
|
||||
# Hishtory Config:
|
||||
export PATH="$PATH:/Users/runner/.hishtory"
|
||||
source /Users/runner/.hishtory/config.zsh
|
||||
```
|
||||
|
||||
|
25
client/testdata/TestInstallSkipConfigModification-InstallOutput-linux
vendored
Normal file
25
client/testdata/TestInstallSkipConfigModification-InstallOutput-linux
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
Please edit "~/.bashrc" to add:
|
||||
|
||||
```
|
||||
# Hishtory Config:
|
||||
export PATH="$PATH:/home/runner/.hishtory"
|
||||
source /home/runner/.hishtory/config.sh
|
||||
```
|
||||
|
||||
Please edit "~/.bash_profile" to add:
|
||||
|
||||
```
|
||||
# Hishtory Config:
|
||||
export PATH="$PATH:/home/runner/.hishtory"
|
||||
source /home/runner/.hishtory/config.sh
|
||||
```
|
||||
|
||||
Please edit "~/.zshrc" to add:
|
||||
|
||||
```
|
||||
# Hishtory Config:
|
||||
export PATH="$PATH:/home/runner/.hishtory"
|
||||
source /home/runner/.hishtory/config.zsh
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user