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.

SpaceVim で .bashrc に定義した alias を使用する方法

Posted at

やりたかったこと

  • SpaceVim の :! から .bashrc に定義した alias や function を使いたかった

設定方法

  • $HOME/.SpaceVim/init.vim$HOME/.SpaceVim/vimrc$BASH_ENV を定義し、読み込ませる

$HOME/.SpaceVim/init.vim || $HOME/.SpaceVim/vimrc

let $BASH_ENV = '~/.bashrc_vim'

$HOME/.bashrc_vim

shopt -s expand_aliases # alias を展開するため、この行が必要
alias g='git'

以上の設定で .bashrc_vim に定義した alias が使えるようになるはず。

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?