기초 지식

필자가 처한 상황

아이디어

구현

  1. bash 파일을 만든다.
#!/bin/bash
cd ~/note && echo `git pull` && cd -
  1. zshrc의 alias에 아까 git_pull.sh 파일과 등록
alias note_push="~/setting/note_push.sh"
alias obsidian="echo `~/setting/note_pull.sh` | open ~/Applications/Obsidian"

세팅 끝!!!!

이제 obsidian이라는 명령을 통해 git pull이 자동으로되고 옵시디언이 실행되는 것을 볼 수 있다! (다 쓰면 note_push)