Config

~/.bashrc

Rina Kawakita 2019. 12. 24. 18:58
~/.bashrc
#
# ~/.bashrc
#

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export SYSTEMD_EDITOR="vim"
#PATH=$PATH:/home/nietz/.gem/ruby/2.5.0/bin
#export PATH
# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
PS1='[\W]\$ '

[ -f ~/.fzf.bash ] && source ~/.fzf.bash

ncmpcpp() {
    if ! pidof "$(type -P mpd)" >/dev/null; then
        mpd
        if type -P mpdscribble >/dev/null; then
            killall mpdscribble >&/dev/null
            mpdscribble
        fi
        $(type -P ncmpcpp) "$@"
    else
        $(type -P ncmpcpp) "$@"
    fi
}

export WORKON_HOME=~/.virtualenvs
source /usr/bin/virtualenvwrapper.sh