0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【効率化】ターミナル で作業ブランチを最初からDocumentsにする!

Last updated at Posted at 2020-12-04

概要

ターミナルが起動したときに「cd Documents」を毎回入力する手間を省きたいと思いました。
メモとして残します。

今回の結論

「zshrcファイル」を設定することで、「作業ディレクトリ」を「Documents」になるように設定した

設定方法

terminal
# 設定ファイルへ移動
vim ~/.zshrc
.zshrc
# 以下を入力
cd Documents 

入力後、再起動で設定完了です
これで、ターミナル を起動すると、初めから「cd Documnets」が入力された状態からスタートするので、入力する手間がなくななりました!
Desktopにしたい場合は、 「cd Desktop」を入力してください。

まとめ

「ググる力」が足りなかったため、「作業ディレクトリ」というワードに行き着くまで時間を要しました。
日頃から名称は意識して作業しなければと改めて感じました!
小さな疑問でしたが、解決してすっきりしました!

参照

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?