summary refs log tree commit diff
path: root/.profile
blob: 161796ec3f5b3f79b2ff445cb907f5f51fe6f4c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if [ -d "${HOME}/bin" ]; then
	pathprepend "${HOME}/bin"
	pathprepend "${HOME}/bin/$(uname -n)"
fi

if [ -d "${HOME}/AppImages" ]; then
	pathappend "${HOME}/AppImages"
fi

# Use the new build backend in docker
export DOCKER_BUILDKIT=1

# Parallel portage
export NUMCPUS=$(nproc)
export NUMCPUSplusone=$((NUMCPUS + 1))
export MAKEOPTS="-j${NUMCPUSplusone} -l${NUMCPUS}"
export EMERGE_DEFAULT_OPTS="--jobs=${NUMCPUSplusone} --load-average=${NUMCPUS}"

# Set prompt
GREEN="\[$(tput setaf 2)\]"
RESET="\[$(tput sgr0)\]"
export PS1="${GREEN}\w${RESET} $(porcelain) ❱ "
# enlable vi mode
set -o vi
bind -m vi-insert -x '"\C-l": clear'

# Set less default options
export LESS='--hilite-search --hilite-unread --long-prompt --raw-control-chars --chop-long-lines'

# Set the rsync ssh command to use by default
export RSYNC_RSH='ssh -T -x -o Compression=no'

# Alias shell commands
# alias logout='dbus-send --session --type=method_call --print-reply --dest='
alias vim=nvim
alias l='exa --long --classify --group --header --group-directories-first'
alias ..='cd ..'
alias ssh='TERM=xterm-256color ssh'
alias rsyncez='rsync --verbose --archive --human-readable --partial --progress --stats --protect-args --rsh="ssh -o Compression=no"'
alias webcam='mpv --profile=webcam av://v4l2:/dev/video0'
alias balssh='ssh -p 22222 -o User=root -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
alias balscp='scp -P 22222 -o User=root -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'