dotfiles/bash/.bashrc.append

34 lines
610 B
Plaintext
Raw Normal View History

2020-09-28 06:45:49 +00:00
# customized
umask 077
export EDITOR='vim'
export VISUAL='vim'
# cool colored command prompt
PS1='${debian_chroot:+($debian_chroot)}\[\e[01;38;5;11m\]\u\[\e[00;38;5;208m\]@\[\e[01;38;5;27m\]\h\[\e[00m\]:\[\e[00;38;5;45m\]\w\[\e[0m\]\$ '
2021-02-01 00:51:09 +00:00
alias ls='ls --color'
2020-09-28 06:45:49 +00:00
# Shows a oneline preview of all files under the folder after changing directory.
cd() {
builtin cd "$@" && ls -v -w $COLUMNS --color=always --format=commas --group-directories-first | head -n 1
}
pushd() {
builtin pushd "$@"
cd .
}
popd() {
builtin popd "$@"
cd .
}
if [ -z "$TMUX" ] && [ "$PWD" == ~ ]; then
tmux new -As default
fi