aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.profile
diff options
context:
space:
mode:
Diffstat (limited to 'home/.profile')
-rwxr-xr-xhome/.profile24
1 files changed, 24 insertions, 0 deletions
diff --git a/home/.profile b/home/.profile
new file mode 100755
index 0000000..2550836
--- /dev/null
+++ b/home/.profile
@@ -0,0 +1,24 @@
+# ~/.profile: executed by the command interpreter for login shells.
+# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
+# exists.
+# see /usr/share/doc/bash/examples/startup-files for examples.
+# the files are located in the bash-doc package.
+
+# the default umask is set in /etc/profile; for setting the umask
+# for ssh logins, install and configure the libpam-umask package.
+#umask 022
+
+# shellcheck source=/dev/null
+[ -r ~/.config/sh/envrc ] && . ~/.config/sh/envrc
+
+if [ ! "$DISPLAY" ] && [ "$XDG_VTNR" = "1" ]; then
+ ifexists sx
+fi
+
+if [ "$BASH" ]; then
+ safesource ~/.bashrc
+elif [ "$ZSH_VERSION" ]; then
+ safesource "$XDG_CONFIG_HOME"/zsh/.zshrc
+else
+ safesource "$XDG_CONFIG_HOME"/sh/shinit
+fi