1
1

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 5 years have passed since last update.

zpreztoのgitエイリアスを簡単に調べる

Last updated at Posted at 2017-12-08

zpreztoが入れてくれるgitコマンドのショートカットはとても便利である一方、よく忘れるのでそのたびにググりがち。

そんな人は多くの場合
~/.zprezto/modules/git/alias.zsh にgitのエイリアスが記述されているので、そこを参照できるようにしておくととても便利。

.zshrcに追記

$ vim .zshrc

# zpreztoのgit ショートカットを一覧化
alias zgit='cat ~/.zprezto/modules/git/alias.zsh | grep "alias "'

使い方

特定のコマンドを調べたい

$ zgit | grep gls

  alias gls='git log --topo-order --stat --pretty=format:"${_git_log_medium_format}"'

すべて見たい

$ zgit

  alias g='git'
  alias gb='git branch'
  alias gba='git branch --all --verbose'
  ...
  alias gwC='git clean -f'
  alias gwx='git rm -r'
  alias gwX='git rm -rf'
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?