init the docker file for later user
https://github.com/static-web-server/static-web-server
This commit is contained in:
15
src/components/client/shell/history.ts
Normal file
15
src/components/client/shell/history.ts
Normal file
@ -0,0 +1,15 @@
|
||||
const history_list: string[] = []
|
||||
|
||||
interface History {
|
||||
add: (cmd: string) => void
|
||||
}
|
||||
const history = {} as History
|
||||
|
||||
history.add = function(cmd: string) {
|
||||
if (history_list[history_list.length-1] !== cmd) {
|
||||
history_list.push(cmd)
|
||||
}
|
||||
}
|
||||
|
||||
export default history
|
||||
export { history_list }
|
Reference in New Issue
Block a user