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

Git Bash for Windowsでaliasを設定する

Last updated at Posted at 2021-01-28

Git Bashを開き、
alias
コマンドで現在のaliasを確認する。

$ alias
alias ll='ls -l'
alias ls='ls -F --color=auto --show-control-chars'

設定ファイル(~/.bash_profile)があるか確認し、なければ新規作成。

touch ~/.bash_profile

viエディタで設定ファイルを開く。

vi .bash_profile

設定したい内容を記述して保存する。以下は例。

.bash_profile
alias open="explorer"

再起動し動作を確認する。

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