From e847692a01d07b18efd73756307ad7fa654b7bf5 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 24 Mar 2020 20:23:58 +0100 Subject: [PATCH] correct xdg_data_home and moved profile --- .config/profile | 60 ------------------------------------------------ .profile | 61 ++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 60 insertions(+), 61 deletions(-) delete mode 100644 .config/profile mode change 120000 => 100644 .profile diff --git a/.config/profile b/.config/profile deleted file mode 100644 index 82a838e..0000000 --- a/.config/profile +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# Profile file. Runs on login. - -# Adds `~/.local/bin` and all subdirectories to $PATH -export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')" - -export AUDIO="mpv" -export BROWSER="firefox" -export EDITOR="nvim" -export FILE="vifmrun" -export IMAGE="sxiv" -export LATEX="nvim" -export MAIL="thunderbird" -export MUSIC="ncmpcpp" -export READER="zathura" -export RTV_BROWSER="firefox" -export TABLE="sc-im" -export TERMINAL="st" -export QT_QPA_PLATFORMTHEME="qt5ct" -export VIDEO="mpv" - -export XDG_CACHE_HOME="$HOME/.cache" -export XDG_CONFIG_HOME="$HOME/.config" -export XDG_DATA_HOME="$HOME/.data" -export XDG_RUNTIME_HOME="$HOME/.tmp" - -export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android" -export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" -export GRADLE_USER_HOME="$XDG_CONFIG_HOME/gradle" -export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" -export HISTFILE="$HOME/.cache/shhistory" -export INPUTRC="$XDG_CONFIG_HOME/inputrc" -export LESSKEY="$XDG_CONFIG_HOME/less/lesskey" -export LESSHISTFILE="-" -export ncmpcpp_direcotory="-" -export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config" -export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" -export NUGET_PACKAGES="$XDG_CACHE_HOME/nugetpackages" -export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" -export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass" -export TMUX_TMPDIR="$XDG_RUNTIME_HOME/tmux" -export WGETRC="$XDG_CONFIG_HOME/wgetrc" -export XAUTHORITY="$XDG_RUNTIME_HOME/Xauthority" -export ZDOTDIR="$XDG_CONFIG_HOME/zsh" - -# less/man colors -export LESS=-R -export LESS_TERMCAP_mb="$(printf '%b' '')"; a="${a%_}" -export LESS_TERMCAP_md="$(printf '%b' '')"; a="${a%_}" -export LESS_TERMCAP_me="$(printf '%b' '')"; a="${a%_}" -export LESS_TERMCAP_so="$(printf '%b' '')"; a="${a%_}" -export LESS_TERMCAP_se="$(printf '%b' '')"; a="${a%_}" -export LESS_TERMCAP_us="$(printf '%b' '')"; a="${a%_}" -export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}" - -echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc" -echo "$0" | grep "zsh$" >/dev/null && [ -f $ZDOTDIR/.zshrc ] && source "$ZDOTDIR/.zshrc" - -# Start graphical server if i3 not already running. -[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3 >/dev/null && exec startx diff --git a/.profile b/.profile deleted file mode 120000 index b86175e..0000000 --- a/.profile +++ /dev/null @@ -1 +0,0 @@ -.config/profile \ No newline at end of file diff --git a/.profile b/.profile new file mode 100644 index 0000000..46b0c44 --- /dev/null +++ b/.profile @@ -0,0 +1,60 @@ +#!/bin/sh +# Profile file. Runs on login. + +# Adds `~/.local/bin` and all subdirectories to $PATH +export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')" + +export AUDIO="mpv" +export BROWSER="firefox" +export EDITOR="nvim" +export FILE="vifmrun" +export IMAGE="sxiv" +export LATEX="nvim" +export MAIL="thunderbird" +export MUSIC="ncmpcpp" +export READER="zathura" +export RTV_BROWSER="firefox" +export TABLE="sc-im" +export TERMINAL="st" +export QT_QPA_PLATFORMTHEME="qt5ct" +export VIDEO="mpv" + +export XDG_CACHE_HOME="$HOME/.cache" +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_RUNTIME_HOME="$HOME/.tmp" + +export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android" +export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" +export GRADLE_USER_HOME="$XDG_CONFIG_HOME/gradle" +export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" +export HISTFILE="$HOME/.cache/shhistory" +export INPUTRC="$XDG_CONFIG_HOME/inputrc" +export LESSKEY="$XDG_CONFIG_HOME/less/lesskey" +export LESSHISTFILE="-" +export ncmpcpp_direcotory="-" +export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config" +export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" +export NUGET_PACKAGES="$XDG_CACHE_HOME/nugetpackages" +export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" +export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass" +export TMUX_TMPDIR="$XDG_RUNTIME_HOME/tmux" +export WGETRC="$XDG_CONFIG_HOME/wgetrc" +export XAUTHORITY="$XDG_RUNTIME_HOME/Xauthority" +export ZDOTDIR="$XDG_CONFIG_HOME/zsh" + +# less/man colors +export LESS=-R +export LESS_TERMCAP_mb="$(printf '%b' '')"; a="${a%_}" +export LESS_TERMCAP_md="$(printf '%b' '')"; a="${a%_}" +export LESS_TERMCAP_me="$(printf '%b' '')"; a="${a%_}" +export LESS_TERMCAP_so="$(printf '%b' '')"; a="${a%_}" +export LESS_TERMCAP_se="$(printf '%b' '')"; a="${a%_}" +export LESS_TERMCAP_us="$(printf '%b' '')"; a="${a%_}" +export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}" + +echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc" +echo "$0" | grep "zsh$" >/dev/null && [ -f $ZDOTDIR/.zshrc ] && source "$ZDOTDIR/.zshrc" + +# Start graphical server if i3 not already running. +[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3 >/dev/null && exec startx