From 55bee508991dc5384a4573105c668d107a9b7ded Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Tue, 5 Nov 2024 00:01:55 +0530 Subject: Added plugins. Also added .profile due ubuntu's GDM xsession req Xsession only source .profile. --- .profile | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .profile (limited to '.profile') diff --git a/.profile b/.profile new file mode 100644 index 0000000..a6f8c66 --- /dev/null +++ b/.profile @@ -0,0 +1,58 @@ +#!/bin/sh -l + +append_path () { + case ":$PATH:" in + *:"$1":*) + ;; + *) + PATH="${PATH:+$PATH:}$1" + esac +} + +for i in "$HOME"/.local/bin "$HOME"/.local/opt/*/bin "$HOME/go/bin" +do + if test -d "$HOME/.local/opt/go/bin" + then + append_path "$i" + fi +done +export PATH + + +export XDG_CONFIG_HOME="$HOME/.config/" +export XDG_CACHE_HOME="$HOME/.cache/" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_STATE_HOME="$HOME/.local/state/" + +if command -v nvim > /dev/null +then + export VISUAL=nvim +elif command -v vim > /dev/null +then + export VISUAL=vim +elif command -v vi > /dev/null +then + export VISUAL=vi +fi + +if command -v ex > /dev/null +then + export EDITOR=nvim +elif command -v ed > /dev/null +then + export EDITOR=vim +fi + +if command -v less > /dev/null +then + export PAGER=less +elif command -v more > /dev/null +then + export PAGER=more +fi + +if test -f "$HOME"/.cargo/env +then + . "$HOME/.cargo/env" +fi + -- cgit v1.2.3-70-g09d2