summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornic <ra@afu.re>2024-04-01 11:13:00 -0400
committernic <ra@afu.re>2024-04-01 11:13:00 -0400
commit75ec98f6ba21d537de488a4e7f94001c0f42f4d5 (patch)
treef6446fff194e6dea1835fd67e97f5748ceb396c8
parent539fa161e139a29bb045337eb85f0493ae940ace (diff)
Placing Doas by Sudo
-rw-r--r--.config/shell/aliasrc7
-rw-r--r--.config/shell/profile20
2 files changed, 18 insertions, 9 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 17334cc..99c7141 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -6,8 +6,9 @@
# Use neovim for vim if present
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
-
+# git for my dotfiles
alias g="/usr/bin/git --git-dir=$HOME/.g --work-tree=$HOME"
+
# Verbosity and settings that you pretty much just always are going to want.
alias \
cp="cp -iv" \
@@ -27,5 +28,5 @@ alias yta='yt-dlp -f "ba" -x -o "%(title)s.%(ext)s" -P "~/Music" '
alias lf="lfub"
# Portage admin aliases
-alias emerge="doas emerge"
-alias eix-sync="doas eix-sync"
+alias emerge="sudo emerge"
+alias eix-sync="sudo eix-sync"
diff --git a/.config/shell/profile b/.config/shell/profile
index 4614eee..4a58f2e 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -1,25 +1,24 @@
#!/bin/zsh
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
-#
-#old one
-#export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
-#
+
unsetopt PROMPT_SP
# Default programs:
export EDITOR="nvim"
export TERMINAL="st"
export BROWSER="librewolf"
-#export SURFER="qutebrowser"
+export SURF="qutebrowser"
# ~/ Clean-up:
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
+
export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc"
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/shell/inputrc"
+
export LESSHISTFILE="-"
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
@@ -29,9 +28,18 @@ export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config"
export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config"
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
+export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
+export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history"
+export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
+export PYTHON_HISTORY="$XDG_DARA_HOME/python/history"
+export PYTHONPYCACHEPREFIX="$XDG_CACHE_HOME/python"
+export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
+export W3M_DIR="$XDG_CONFIG_HOME/w3m"
+
#export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg" # pam-gnupg
+
#export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
-export DOAS_ASKPASS="$HOME/.local/bin/dmenupass"
+
#start graphical server on user's current tty if not already running.
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"