summaryrefslogtreecommitdiff
path: root/config/shell/profile
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-08-02 19:38:56 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-08-02 19:38:56 +0400
commit8f8c31cd279b01a754ca36bf66c641ddffcd6dc6 (patch)
treed78eed80372cd2af26862f70722730142f399a4a /config/shell/profile
parent42abf63e7beaf40e7ff0ab434dbaa8d87a901dea (diff)
theion.sh changed to profile with some minor changes
Diffstat (limited to 'config/shell/profile')
-rw-r--r--config/shell/profile20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/shell/profile b/config/shell/profile
new file mode 100644
index 0000000..264d4ef
--- /dev/null
+++ b/config/shell/profile
@@ -0,0 +1,20 @@
+#Directories
+export XDG_CACHE_HOME=$HOME/.cache
+export XDG_CONFIG_HOME=$HOME/.config
+export XDG_DATA_HOME=$HOME/.local/share
+export XDG_STATE_HOME=$HOME/.local/state
+export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
+export ZSHRC="$XDG_CONFIG_HOME/zsh/zshrc"
+
+
+# Environment variables
+[ -x "$(command -v vim)" ] && export EDITOR="vim"
+[ -x "$(command -v nvim)" ] && export EDITOR="nvim"
+[ -x "$(command -v st)" ] && export TERMINAL="st"
+[ -x "$(command -v qutebrowser)" ] && export BROWSER="qutebrowser"
+
+export MAKEFLAGS="-j8" # Reduce compile times
+
+lfcd () {
+ cd "$(command lf -print-last-dir "$@")"
+}