Compare commits

..

4 commits

Author SHA1 Message Date
1565ba2beb Add go paths
Also improve comments.
2021-10-06 15:31:42 +02:00
0916d0d54a Use bat instead of less 2021-10-06 15:30:32 +02:00
012f6d1936 Add cargo env 2021-10-06 15:29:56 +02:00
fc2492504c Move manpager setting to profile 2021-10-06 15:28:46 +02:00
2 changed files with 18 additions and 5 deletions

View file

@ -8,11 +8,12 @@
# for ssh logins, install and configure the libpam-umask package. # for ssh logins, install and configure the libpam-umask package.
#umask 022 #umask 022
export PAGER='less' export PAGER='bat'
export EDITOR='em' export EDITOR='em'
export VISUAL='em' export VISUAL='em'
export BROWSER='qutebrowser' export BROWSER='qutebrowser'
export TERMINAL='urxvtcd' export TERMINAL='urxvtcd'
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
# make the password-store use primary instead of clipboard # make the password-store use primary instead of clipboard
export PASSWORD_STORE_X_SELECTION=primary export PASSWORD_STORE_X_SELECTION=primary
@ -25,12 +26,22 @@ if [ -n "$BASH_VERSION" ]; then
fi fi
fi fi
# set PATH so it includes user's private bin if it exists # if `$HOME/.local/bin` exists, add it to $PATH
if [ -d "$HOME/.local/bin" ] ; then if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH" PATH="$HOME/.local/bin:$PATH"
fi fi
# set PATH so it includes user's .cargo/bin # if `$HOME/.cargo/bin` exists, add it to $PATH
if [ -d "$HOME/.cargo/bin" ] ; then if [ -d "$HOME/.cargo/bin" ] ; then
PATH="$HOME/.cargo/bin:$PATH" PATH="$HOME/.cargo/bin:$PATH"
fi fi
# if `$HOME/go/bin` exists, add it to $GOPATH
if [ -d "$HOME/go/bin" ] ; then
GOPATH="$HOME/go/bin"
fi
# if `/usr/local/go/bin` exists, add it and $GOPATH to $PATH
if [ -d "/usr/local/go/bin" ] ; then
PATH="/usr/local/go/bin:$GOPATH:$PATH"
fi

View file

@ -70,5 +70,7 @@ alias wttr='curl https://wttr.in/Salzburg'
# #
alias valgrind='valgrind --track-origins=yes --leak-check=full' alias valgrind='valgrind --track-origins=yes --leak-check=full'
# use bat for showing manpages (for colors) #
export MANPAGER="sh -c 'col -bx | bat -l man -p'" # Cargo env
#
. "$HOME/.cargo/env"