diff options
Diffstat (limited to '.config/shell')
| -rw-r--r-- | .config/shell/aliasrc | 2 | ||||
| -rw-r--r-- | .config/shell/bm-dirs | 7 | ||||
| -rw-r--r-- | .config/shell/eibhear/aliasrc | 43 | ||||
| -rw-r--r-- | .config/shell/eibhear/bm-dirs | 5 | ||||
| -rw-r--r-- | .config/shell/eibhear/bm-files | 4 | ||||
| -rw-r--r-- | .config/shell/eibhear/profile | 22 | ||||
| -rw-r--r-- | .config/shell/profile | 2 |
7 files changed, 84 insertions, 1 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index c9ddbc4..fe7c70c 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -59,3 +59,5 @@ alias \ lf="lfub" \ magit="nvim -c MagitOnly" \ ref='shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc' + +source "$XDG_CONFIG_HOME"/shell/eibhear/aliasrc diff --git a/.config/shell/bm-dirs b/.config/shell/bm-dirs index 9d212ec..3bb1a67 100644 --- a/.config/shell/bm-dirs +++ b/.config/shell/bm-dirs @@ -4,7 +4,6 @@ cf ${XDG_CONFIG_HOME:-$HOME/.config} D ${XDG_DOWNLOAD_DIR:-$HOME/Downloads} d ${XDG_DOCUMENTS_DIR:-$HOME/Documents} dt ${XDG_DATA_HOME:-$HOME/.local/share} -rr $HOME/.local/src h $HOME m ${XDG_MUSIC_DIR:-$HOME/Music} mn /mnt @@ -12,3 +11,9 @@ pp ${XDG_PICTURES_DIR:-$HOME/Pictures} sc $HOME/.local/bin src $HOME/.local/src vv ${XDG_VIDEOS_DIR:-$HOME/Videos} + +# Maks's +work $HOME/work +agh $HOME/agh +# Work +headlesslims $work/prym-soft/headlesslims diff --git a/.config/shell/eibhear/aliasrc b/.config/shell/eibhear/aliasrc new file mode 100644 index 0000000..7cdcb86 --- /dev/null +++ b/.config/shell/eibhear/aliasrc @@ -0,0 +1,43 @@ +#!/bin/sh +alias eibhear="git --git-dir=$XDG_DATA_HOME/eibhear --work-tree=$HOME" + +alias la="ls -lAhNF --group-directories-first" + +# eval "$(pyenv init - zsh)" +source /usr/share/zsh/site-functions/_pyenv +export PATH="$XDG_DATA_HOME/pyenv/shims:${PATH}" +export PYENV_SHELL=zsh +( command pyenv rehash 2>/dev/null & ) +pyenv() { + local command=${1:-} + [ "$#" -gt 0 ] && shift + case "$command" in + rehash|shell) + eval "$(pyenv "sh-$command" "$@")" + ;; + *) + command pyenv "$command" "$@" + ;; + esac +} + + +# eval "$(nodenv init - zsh)" +export PATH="$XDG_DATA_HOME/nodenv/shims:${PATH}" +export NODENV_SHELL=zsh +source '/usr/lib/nodenv/completions/nodenv.zsh' +( command nodenv rehash 2>/dev/null & ) +nodenv() { + local command + command="${1:-}" + if [ "$#" -gt 0 ]; then + shift + fi + + case "$command" in + rehash|shell) + eval "$(nodenv "sh-$command" "$@")";; + *) + command nodenv "$command" "$@";; + esac +} diff --git a/.config/shell/eibhear/bm-dirs b/.config/shell/eibhear/bm-dirs new file mode 100644 index 0000000..1fd0312 --- /dev/null +++ b/.config/shell/eibhear/bm-dirs @@ -0,0 +1,5 @@ +work $HOME/work +agh $HOME/agh + +# Work +headlesslims $work/prym-soft/headlesslims diff --git a/.config/shell/eibhear/bm-files b/.config/shell/eibhear/bm-files new file mode 100644 index 0000000..b2b0a0c --- /dev/null +++ b/.config/shell/eibhear/bm-files @@ -0,0 +1,4 @@ +bf ${XDG_CONFIG_HOME:-$HOME/.config}/shell/eibhear/bm-file +bd ${XDG_CONFIG_HOME:-$HOME/.config}/shell/eibhear/bm-dirs +cfx ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources +cfb ~/.local/src/dwmblocks/config.h diff --git a/.config/shell/eibhear/profile b/.config/shell/eibhear/profile new file mode 100644 index 0000000..e8fb8ef --- /dev/null +++ b/.config/shell/eibhear/profile @@ -0,0 +1,22 @@ +#!/bin/sh +export BROWSER="brave" +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" +export GNUPGHOME="$XDG_DATA_HOME/gnupg" + +export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history" + +export SUDO_ASKPASS="$HOME/.local/bin/maks/dmenudoas" + +export RUSTUP_HOME="$XDG_DATA_HOME/rustup" + +export PYTHON_HISTORY=$XDG_STATE_HOME/python_history +export PYTHONPYCACHEPREFIX=$XDG_CACHE_HOME/python +export PYTHONUSERBASE=$XDG_DATA_HOME/python + +export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority + +export PYENV_ROOT="$XDG_DATA_HOME"/pyenv +export PATH="$PYENV_ROOT/bin:$PATH" + +export NODENV_ROOT="$XDG_DATA_HOME/nodenv" +export PATH="$NODENV_ROOT/bin:$PATH" diff --git a/.config/shell/profile b/.config/shell/profile index 872e312..595cb29 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -66,6 +66,8 @@ export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm [ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && setsid -f shortcuts >/dev/null 2>&1 +source "$XDG_CONFIG_HOME"/shell/eibhear/profile + # 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" |
