LoginSignup
0
1

パッとメモ取りたい時のエイリアス

Posted at

やりたいことと条件

  • MTGやプチ相談の際、頻繁にメモを取る
  • 閲覧者は基本自分のみ
    • 共有する際は編集する
  • ターミナルと睨めっこしていることが多いのでメモ帳とかチャットツールじゃ無い方が楽かもな
    • マークダウンで書きたいな
  • 1つ書き終えたら手作業リネームでも良いや

設定

  • ~/.bash_profileに以下の3行を追記
    • パスは管理しやすい場所、適当で大丈夫です
  • source ~/.bash_profileするかターミナル再起動
alias memos='cd /Users/ユーザー名/tools/script/Stacker/ && ls -lahG';
alias memo='vim /Users/ユーザー名/tools/script/Stacker/`date "+%Y%m%d"`.md';
alias memocode='code /Users/ユーザー名/tools/script/Stacker/`date "+%Y%m%d"`.md';

簡単な解説

  • memos
    • メモの保存先へカレントディレクトリを移動
  • memo
    • 今の日付でマークダウンファイルを新規作成
  • memocode
    • memoのVSCode用(VSCode使ってない場合は記述しなくてもOK)

その他

  • dateコマンドのフォーマットに時間なども加えるとより便利になるかもしれない
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1