typo
This commit is contained in:
parent
400aa1e374
commit
63e090edb4
29
.bashrc
29
.bashrc
|
@ -44,6 +44,7 @@ export BROWSER=w3m
|
||||||
# ... and vim is the Best
|
# ... and vim is the Best
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
|
||||||
|
export PAGER=less
|
||||||
# very min bash aliases
|
# very min bash aliases
|
||||||
alias ls='ls -F --color'
|
alias ls='ls -F --color'
|
||||||
alias l='ls -l'
|
alias l='ls -l'
|
||||||
|
@ -55,6 +56,7 @@ alias wa='ssh warhol'
|
||||||
#
|
#
|
||||||
test -f ~/.bash_aliases && source ~/.bash_aliases
|
test -f ~/.bash_aliases && source ~/.bash_aliases
|
||||||
test -f ~/.bash_prompt && source ~/.bash_prompt
|
test -f ~/.bash_prompt && source ~/.bash_prompt
|
||||||
|
eval "$(dircolors ~/.dircolors)"
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
test -f ~/.dircolors && eval $(dircolors ~/.dircolors)
|
test -f ~/.dircolors && eval $(dircolors ~/.dircolors)
|
||||||
test -d ~/dotfiles/bash_completion && {
|
test -d ~/dotfiles/bash_completion && {
|
||||||
|
@ -65,6 +67,12 @@ test -d ~/dotfiles/bash_completion && {
|
||||||
done;
|
done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export MANPAGER="less -R --use-color -Dsc -Dk+r -Dd+g -Du+c -DPgb -DEbR"
|
||||||
|
export MANROFFOPT="-P -c"
|
||||||
|
|
||||||
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||||||
|
[ -x /usr/bin/lesspipe.sh ] && eval "$(lesspipe.sh)"
|
||||||
# startship
|
# startship
|
||||||
# https://starship.rs/
|
# https://starship.rs/
|
||||||
type -t starship >/dev/null && {
|
type -t starship >/dev/null && {
|
||||||
|
@ -154,10 +162,25 @@ function _prepend_path() { _append_path -r "$1" "$2"; }
|
||||||
### rust
|
### rust
|
||||||
test -d "$HOME/.cargo/bin" && PATH=$(_prepend_path "$PATH" "$HOME/.cargo/bin")
|
test -d "$HOME/.cargo/bin" && PATH=$(_prepend_path "$PATH" "$HOME/.cargo/bin")
|
||||||
|
|
||||||
|
|
||||||
### golang - default is $HOME/go/bin
|
### golang - default is $HOME/go/bin
|
||||||
export GOPATH="$HOME/go"
|
export GOPATH="$HOME/go"
|
||||||
test -d "$HOME"/go/bin && PATH=$(_prepend_path "$PATH" "$HOME/go/bin")
|
test -d "$HOME"/go/bin && PATH=$(_prepend_path "$PATH" "$HOME/go/bin")
|
||||||
|
type -t buffalo > /dev/null 2>&1 && eval "$(buffalo completion bash)"
|
||||||
|
|
||||||
|
function bt {
|
||||||
|
echo "bash bt $*"
|
||||||
|
local opt=
|
||||||
|
test "$#" -ne 0 && opt="-m ""$*"
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
buffalo test $opt | _gotestcolored | less -RF
|
||||||
|
}
|
||||||
|
function btv {
|
||||||
|
echo "bash btv $*"
|
||||||
|
local opt=
|
||||||
|
test "$#" -ne 0 && opt="-m ""$*"
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
buffalo test -v $opt | _gotestcolored | less -RF
|
||||||
|
}
|
||||||
|
|
||||||
# host specific bash
|
# host specific bash
|
||||||
test -r "$HOME/.bashrc-${HOSTNAME}" && source "$HOME/.bashrc-${HOSTNAME}"
|
test -r "$HOME/.bashrc-${HOSTNAME}" && source "$HOME/.bashrc-${HOSTNAME}"
|
||||||
|
@ -518,7 +541,9 @@ then
|
||||||
PATH="/home/patrick/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
PATH="/home/patrick/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
||||||
PERL5LIB="/home/patrick/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
PERL5LIB="/home/patrick/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
||||||
PERL_LOCAL_LIB_ROOT="/home/patrick/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
PERL_LOCAL_LIB_ROOT="/home/patrick/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
||||||
PERL_MB_OPT="--install_base /home/patrick/perl5"; export PERL_MB_OPT;
|
PERL_MB_OPT='--install_base /home/patrick/perl5'
|
||||||
|
# shellcheck disable=2090
|
||||||
|
export PERL_MB_OPT;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# pyenv
|
# pyenv
|
||||||
|
|
Loading…
Reference in New Issue