# # ~/.bashrc # export PATH="$PATH:$HOME/.local/bin" export XDG_CACHE_HOME="$HOME/.cache" export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" export XDG_BIN_HOME="$HOME/.local/bin" export XDG_MUSIC_DIR="$HOME/Music" export XDG_DOCUMENTS_DIR="$HOME/Documents" # export XDG_PICTURES_DIR="$HOME/Media/images" # export XDG_VIDEOS_DIR="$HOME/Media/videos" # fix ansible dirs export ANSIBLE_HOME="${XDG_CONFIG_HOME}/ansible/home" export ANSIBLE_CONFIG="${XDG_CONFIG_HOME}/ansible/ansible.cfg" export ANSIBLE_GALAXY_CACHE_DIR="${XDG_CACHE_HOME}/ansible/galaxy_cache" #NOTE: for the tmp dir on remotes sould be configuard in ansible.cfg # fix rust dirs export RUSTUP_HOME="$HOME/.local/rust/rustup" export CARGO_HOME="$HOME/.local/rust/cargo" # fix discord dirs # export DISCORD_USER_DATA_DIR="${XDG_DATA_HOME}" # fix docker dirs export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker" # fix screen dirs export SCREENRC="${XDG_CONFIG_HOME}/screen/screenrc" export SCREENDIR="${XDG_RUNTIME_DIR}/screen" # fix texlive dirs export TEXMFHOME="${XDG_DATA_HOME}/texmf" export TEXMFVAR="${XDG_CACHE_HOME}/texlive/texmf-var" export TEXMFCONFIG="${XDG_CONFIG_HOME}/texlive/texmf-config" # fix wget dirs export WGETRC="${XDG_CONFIG_HOME}/wgetrc" alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"' # fix npm dirs export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc" # fix gnupg dirs #TODO: test this # export GNUPGHOME="${XDG_DATA_HOME}/gnupg" # fix java dirs export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/java" # If not running interactively, don't do anything [[ $- != *i* ]] && return alias ls='ls --color=auto' alias la='ls --color=auto -plhA' alias grep='grep --color=auto' alias prusa-slicer='flatpak run com.prusa3d.PrusaSlicer' export EDITOR=vim # quartus export QSYS_ROOTDIR="$HOME/.local/intelFPGA_lite/18.1/quartus/sopc_builder/bin" # start ssh-agent if [[ ! -f "$HOME/.ssh/agent.env" ]] then ssh-agent >"$HOME/.ssh/agent.env" else . "$HOME/.ssh/agent.env" >/dev/null ps -p $SSH_AGENT_PID >/dev/null || ssh-agent >"$HOME/.ssh/agent.env" fi . "$HOME/.ssh/agent.env" export SSH_AGENT_PID; export SSH_AUTH_SOCK; # rust . "$CARGO_HOME/env" # better tools export FZF_CTRL_T_OPTS=" --walker-skip .git,node_modules,target,.var --preview 'bat -n --color=always {}' --bind 'ctrl-/:change-preview-window(down|hidden|)'" eval "$(fzf --bash)" eval "$(zoxide init bash --cmd cd)" # prompt eval "$(oh-my-posh init bash --config "$HOME/.config/oh-my-posh.toml")"