Closed superxcgm closed 3 years ago
Process
For good user experience, user can add some alias to shell and auto replace when execute command.
Given: User type alias When: User hit Then: Print all alias
alias
Given: User type alias ls='ls-G' When: User hit Then: Save alias to shell
alias ls='ls-G'
Given: User already have alias ls='ls -G' saved in our shell When: User type ls and hit Then: Shell execute ls -G
alias ls='ls -G'
ls
ls -G
Given: User already have alias ls='ls -G' and alias ll='ls -lh' saved in our shell When: User type ll and hit Then: Shell execute ls -G -lh
alias ll='ls -lh'
ll
ls -G -lh
Epic
Process
Description
For good user experience, user can add some alias to shell and auto replace when execute command.
AC
Given: User type
Then: Print all alias
alias
When: User hitGiven: User type
Then: Save alias to shell
alias ls='ls-G'
When: User hitGiven: User already have
Then: Shell execute
alias ls='ls -G'
saved in our shell When: User typels
and hitls -G
Given: User already have
Then: Shell execute
alias ls='ls -G'
andalias ll='ls -lh'
saved in our shell When: User typell
and hitls -G -lh