update separate env vars form bash and add to fish; add gl command; update known_hosts
This commit is contained in:
@@ -2,55 +2,7 @@
|
||||
# ~/.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"
|
||||
. "$HOME/.config/env"
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
50
shell/dot-config/env
Normal file
50
shell/dot-config/env
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
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"
|
||||
@@ -1,3 +1,5 @@
|
||||
source "$HOME/.config/env"
|
||||
|
||||
if status is-interactive
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
@@ -5,12 +7,8 @@ if status is-interactive
|
||||
alias grep='grep --color=auto'
|
||||
alias prusa-slicer='flatpak run com.prusa3d.PrusaSlicer'
|
||||
|
||||
export PATH="$PATH:$HOME/.local/bin"
|
||||
export EDITOR=vim
|
||||
|
||||
# quartus
|
||||
export QSYS_ROOTDIR="$HOME/.local/intelFPGA_lite/18.1/quartus/sopc_builder/bin"
|
||||
|
||||
# TODO: ssh-agent
|
||||
# TODO: rust
|
||||
|
||||
@@ -27,5 +25,8 @@ if status is-interactive
|
||||
# prompt
|
||||
oh-my-posh init fish --config "$HOME/.config/oh-my-posh.toml" | source
|
||||
|
||||
# desable auto seguestions
|
||||
export fish_autosuggestion_enabled=0
|
||||
|
||||
end
|
||||
|
||||
|
||||
3
shell/dot-local/bin/gl
Executable file
3
shell/dot-local/bin/gl
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
git log --graph --oneline --all
|
||||
Reference in New Issue
Block a user