github.com/scorpionis/hub@v2.2.1+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 "$(hub 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 (hub 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 "$(hub alias -s)"\n 31 """ 32 33 Scenario: csh instructions 34 Given $SHELL is "/bin/csh" 35 When I successfully run `hub alias` 36 Then the output should contain exactly: 37 """ 38 # Wrap git automatically by adding the following to ~/.cshrc: 39 40 eval "`hub alias -s`"\n 41 """ 42 43 Scenario: tcsh instructions 44 Given $SHELL is "/bin/tcsh" 45 When I successfully run `hub alias` 46 Then the output should contain exactly: 47 """ 48 # Wrap git automatically by adding the following to ~/.tcshrc: 49 50 eval "`hub alias -s`"\n 51 """ 52 53 Scenario: bash code 54 Given $SHELL is "/bin/bash" 55 When I successfully run `hub alias -s` 56 Then the output should contain exactly: 57 """ 58 alias git=hub\n 59 """ 60 61 Scenario: fish code 62 Given $SHELL is "/usr/local/bin/fish" 63 When I successfully run `hub alias -s` 64 Then the output should contain exactly: 65 """ 66 alias git=hub\n 67 """ 68 69 Scenario: zsh code 70 Given $SHELL is "/bin/zsh" 71 When I successfully run `hub alias -s` 72 Then the output should contain exactly: 73 """ 74 alias git=hub\n 75 """ 76 77 Scenario: csh code 78 Given $SHELL is "/bin/csh" 79 When I successfully run `hub alias -s` 80 Then the output should contain exactly: 81 """ 82 alias git hub\n 83 """ 84 85 Scenario: tcsh code 86 Given $SHELL is "/bin/tcsh" 87 When I successfully run `hub alias -s` 88 Then the output should contain exactly: 89 """ 90 alias git hub\n 91 """ 92 93 Scenario: unsupported shell 94 Given $SHELL is "/bin/zwoosh" 95 When I run `hub alias -s` 96 Then the output should contain exactly: 97 """ 98 hub alias: unsupported shell 99 supported shells: bash zsh sh ksh csh tcsh fish\n 100 """ 101 And the exit status should be 1