superxcgm / xcShell

Your own shell
1 stars 1 forks source link

Build-in: alias #28

Closed superxcgm closed 3 years ago

superxcgm commented 3 years ago

Epic

Process

Description

For good user experience, user can add some alias to shell and auto replace when execute command.

AC

Given: User type alias When: User hit Then: Print all alias

Given: User type alias ls='ls-G' When: User hit Then: Save alias to shell

Given: User already have alias ls='ls -G' saved in our shell When: User type ls and hit Then: Shell execute 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