LoginSignup
0
0

.bashrcカスタマイズ備忘録

Last updated at Posted at 2023-08-31

はじめに

IDEとしてcloud9を使っているのですが建てるたびにbashの設定がリセットされてしますので、自分向けに.bashrcの設定を残しておきます。

手順

コマンド
#viエディタで編集
$ vi ~/.bashrc
.bashrc
~最後尾に追記~
alias ll='ls -l'
alias la='ls -a'
alias tf='terraform'
alias tff='terraform fmt'
alias tfi='terraform init'
alias tfp='terraform plan'
alias tfa='terraform apply -auto-approve'

➡bashコマンドでリロード
コマンド
#エイリアスの確認
$ alias

以下のシェルを叩いてもOK!

.sh
#! bin/bash

#.bashrcカスタマイズ
cat <<EOL >> ~/.bashrc
#alias追加
alias ll='ls -l'
alias la='ls -a'
alias tf='terraform'
alias tff='terraform fmt'
alias tfi='terraform init'
alias tfp='terraform plan'
alias tfa='terraform apply -auto-approve'
EOL

#適用
bash
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