Terminal Hax Flashcards

1
Q

bash alias settings

A

vim ~/.bashrc

alias k=kubectl

alias kn=’kubectl config set-context –current –namespace ‘

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

vim settings

A

vim ~/.vimrc

imap jj < Esc > (edited for brainscape)

set tabstop=2

set expandtab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

vim view numbers

A

set number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

vim hide numbers

A

set nonumber

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how to enable new bashrc

A

source ~/.bashrc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

setting shiftwidth

A

:set shiftwidth=2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly