48 lines
1.4 KiB
Bash
48 lines
1.4 KiB
Bash
|
#
|
||
|
# ~/.bashrc
|
||
|
#
|
||
|
|
||
|
# If not running interactively, don't do anything
|
||
|
[[ $- != *i* ]] && return
|
||
|
|
||
|
# alias ls='ls --color=auto'
|
||
|
PS1='\[\e[0;38;5;24m\][\[\e[0;38;5;24m\]$(ip route get 1.1.1.1 2>/dev/null | awk -F"src " '"'"'NR==1{split($2,a," ");print a[1]}'"'"')\[\e[0;38;5;46m\]:\[\e[0;38;5;208m\]\W\[\e[0;38;5;24m\]]\[\e[0;38;5;24m\]\$ \[\e[0m\]'
|
||
|
|
||
|
alias luamake=/home/oliver/sources/lua-language-server/3rd/luamake/luamake
|
||
|
alias l=lfcd
|
||
|
alias clip="xclip -selection clipboard"
|
||
|
alias phone="simple-mtpfs"
|
||
|
alias bell="paplay /usr/share/sounds/freedesktop/stereo/complete.oga"
|
||
|
alias docker-ip="sudo docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}'"
|
||
|
alias useage="du -h -d 1 2> /dev/null | sort -h"
|
||
|
|
||
|
export DENO_INSTALL="/home/oliver/.deno"
|
||
|
export PATH="$DENO_INSTALL/bin:$PATH"
|
||
|
export PATH="$HOME/.cargo/bin:$HOME/.local/bin/:$PATH"
|
||
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||
|
export TORCH_CUDA_VERSION="cu117"
|
||
|
export LIBTORCH="/home/oliver/sources/libtorchcxx11"
|
||
|
export LD_LIBRARY_PATH="${LIBTORCH}/lib:$LD_LIBRARY_PATH"
|
||
|
export WINEPREFIX="$HOME/.wine/"
|
||
|
export DXVK_HUD="fps"
|
||
|
export EDITOR="nvim"
|
||
|
|
||
|
lfcd () {
|
||
|
tmp="$(mktemp)"
|
||
|
lfrun -last-dir-path="$tmp" "$@"
|
||
|
if [ -f "$tmp" ]; then
|
||
|
dir="$(cat "$tmp")"
|
||
|
rm -f "$tmp"
|
||
|
if [ -d "$dir" ]; then
|
||
|
if [ "$dir" != "$(pwd)" ]; then
|
||
|
cd "$dir"
|
||
|
fi
|
||
|
fi
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
cpr() {
|
||
|
rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 "$@"
|
||
|
}
|
||
|
|