feat: Simplify the dotfiles to what is useful
This commit is contained in:
parent
9232cf030b
commit
126d9892e2
11 changed files with 35 additions and 452 deletions
40
.profile
40
.profile
|
|
@ -1,24 +1,32 @@
|
|||
#!/usr/bin/env sh
|
||||
# PS1='[\u@\h \W]\$ '
|
||||
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
|
||||
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/inputrc"
|
||||
export ALIASRC="${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc"
|
||||
|
||||
if docker --version > /dev/null 2>&1; then
|
||||
PS1="\[\033[38;5;34m\]\u@\h \W]\\$\[$(tput sgr0)\] "
|
||||
export PS1
|
||||
else
|
||||
PS1="\[\033[38;5;44m\]\u@\h \W]\\$\[$(tput sgr0)\] "
|
||||
export PS1
|
||||
fi
|
||||
|
||||
# Git should ask for a password through the command line.
|
||||
|
||||
unset GIT_ASKPASS
|
||||
unset SSH_ASKPASS
|
||||
|
||||
# shellcheck source=./.config/aliasrc
|
||||
[ -f "$ALIASRC" ] && . ./"$ALIASRC"
|
||||
# Android development using Dioxus
|
||||
|
||||
JAVA_HOME="/usr/local/android-studio/jbr"
|
||||
export JAVA_HOME
|
||||
ANDROID_HOME="$HOME/Android/Sdk"
|
||||
export ANDROID_HOME
|
||||
NDK_HOME="$ANDROID_HOME/ndk/29.0.13113456"
|
||||
export NDK_HOME
|
||||
PATH="$PATH:$ANDROID_HOME/emulator"
|
||||
export PATH
|
||||
|
||||
# Kubernetes Support
|
||||
|
||||
KUBECONFIG="$HOME"/.kube/config
|
||||
export KUBECONFIG
|
||||
|
||||
# Shortenings
|
||||
alias \
|
||||
d='docker' \
|
||||
g='git' \
|
||||
k='kubectl' \
|
||||
s='sudo'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue