# BashHub - Bash/Zsh 히스토리를 클라우드에 저장하기

> Clean Markdown view of GeekNews topic #1617. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=1617](https://news.hada.io/topic?id=1617)
- GeekNews Markdown: [https://news.hada.io/topic/1617.md](https://news.hada.io/topic/1617.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2020-02-29T09:57:13+09:00
- Updated: 2020-02-29T09:57:13+09:00
- Original source: [bashhub.com](https://bashhub.com/)
- Points: 5
- Comments: 2

## Topic Body

- 다수의 로컬/원격 터미널에서 쉘에 입력한 모든 커맨드를 클라우드에 저장

- 커맨드가 언제,어떤 서버/세션/경로 에서 실행되었는지 다 기록. Exit Status 값 포함

- 커맨드를 어디서든 편하게 검색 및 재사용 : 폴더별/서버별 검색

- 특정 커맨드만 기록 안하게 필터링 가능

## Comments



### Comment 1250

- Author: blurblah
- Created: 2020-03-03T16:10:19+09:00
- Points: 1

아 히스토리가 꼭 필요할 때 밀려서 아쉬울 때가 있었는데 좋군요 :)

### Comment 1225

- Author: xguru
- Created: 2020-02-29T09:57:26+09:00
- Points: 2

zsh 의 preexec/precmd Hook함수를 통해서 쉘에서 모든 커맨드를 후킹한 후 서버에 전송하는 방식으로 동작합니다.

bash 는 preexec/precmd 는 없지만 비슷하게 구현해둔 걸 가져다 쓰고 있네요.

https://github.com/rcaloras/bash-preexec/

예전에 오픈소스버전 BashHub Server만 공유하고, 원 서비스는 공유 안해서 공유합니다 ㅎㅎ

오픈소스 BashHub Server https://news.hada.io/topic?id=1496
