LoginSignup
1
2

More than 5 years have passed since last update.

作業日の一時領域を作成

Posted at

症状

ファイルが散らかってしまう人

効能

日付ディレクトリを自動生成して移動

準備

.bashrc に以下の1行を追記。source ~/.bashrc 反映します。

alias today='mkdir -p ~/wkdir/`date +"%Y%m%d"` ; cd ~/wkdir/`date +"%Y%m%d"`'

手順

today と入力すると、ホームディレクトリのwkdirというディレクトリの配下に作業日の日付のディレクトリを作成して移動します。
その日の作業ディレクトリが自動的に生成されて移動までしてくれて、便利!これでファイルも散らかりませんね!

※細かすぎる内容ですみません。(;・∀・)

1
2
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
1
2