Run The Bridge

나의 .bashrc 설정 & mobaxterm 본문

Cloud

나의 .bashrc 설정 & mobaxterm

anfrhrl5555 2021. 8. 16. 15:17
728x90
반응형
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
#alias ls='ls -lt'
alias vi='vim'
alias cl='clear'
alias dps='docker ps -a'
alias kgr='kubectl get replicaset'
alias kgd='kubectl get deployment'
alias kgp='kubectl get pods -o wide'
alias kgs='kubectl get service -A'
alias kgps='kubectl get pod --show-labels'
alias kgn='kubectl get namespaces'
alias kgc='kubectl get configmaps'
alias ka='kubectl apply -f'
alias kd='kubectl delete -f'

export PS1="\[\e]0;\u@\h \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w #\[\033[00m\] "

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
source <(kubectl completion bash)
alias k=kubectl
complete -F __start_kubectl k

 

위의 설정후 다음 명령으로 적용한다.

source ~/.bashrc

 

그러면 아래와같이 PS1이 변경되고, dir, file간의 구분이 명확해진다.


또한 mobaxterm으로 drag 후 바로 rigth click으로 복붙하고 싶으면 다음 설정을 따른다.

OK 후 재접속하면 drag 후 right click만 해도 복붙이 된다.


mobaxterm에는 다양한 테마가 존재한다. 나는 darkmode를 사용하고 있다. darkmode 사용법은 다음을 따른다.

여러가지 mode가 있는데 나는 'Windows dark theme'를 쓴다.

728x90
반응형
Comments