github.com/jingweno/gh@v2.1.1-0.20221007190738-04a7985fa9a1+incompatible/features/alias.feature (about) 1 Feature: hub alias 2 3 Scenario: bash instructions 4 Given $SHELL is "/bin/bash" 5 When I successfully run `hub alias` 6 Then the output should contain exactly: 7 """ 8 # Wrap git automatically by adding the following to ~/.bash_profile: 9 10 eval "$(gh alias -s)"\n 11 """ 12 13 Scenario: fish instructions 14 Given $SHELL is "/usr/local/bin/fish" 15 When I successfully run `hub alias` 16 Then the output should contain exactly: 17 """ 18 # Wrap git automatically by adding the following to ~/.config/fish/config.fish: 19 20 eval (gh alias -s)\n 21 """ 22 23 Scenario: zsh instructions 24 Given $SHELL is "/bin/zsh" 25 When I successfully run `hub alias` 26 Then the output should contain exactly: 27 """ 28 # Wrap git automatically by adding the following to ~/.zshrc: 29 30 eval "$(gh alias -s)"\n 31 """ 32 33 Scenario: bash code 34 Given $SHELL is "/bin/bash" 35 When I successfully run `hub alias -s` 36 Then the output should contain exactly: 37 """ 38 alias git=gh\n 39 """ 40 41 Scenario: fish code 42 Given $SHELL is "/usr/local/bin/fish" 43 When I successfully run `hub alias -s` 44 Then the output should contain exactly: 45 """ 46 alias git=gh\n 47 """ 48 49 Scenario: zsh code 50 Given $SHELL is "/bin/zsh" 51 When I successfully run `hub alias -s` 52 Then the output should contain exactly: 53 """ 54 alias git=gh\n 55 """ 56 57 Scenario: unsupported shell 58 Given $SHELL is "/bin/zwoosh" 59 When I run `hub alias -s` 60 Then the output should contain exactly: 61 """ 62 gh alias: unsupported shell 63 supported shells: bash zsh sh ksh csh fish\n 64 """ 65 And the exit status should be 1