diff options
author | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2024-11-05 00:01:55 +0530 |
---|---|---|
committer | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2024-11-05 00:01:55 +0530 |
commit | 55bee508991dc5384a4573105c668d107a9b7ded (patch) | |
tree | 0b27bae44a643948defc8c16c5b1bcbe2e3e4eed /.profile | |
parent | Switch to fedora (diff) | |
download | dotfiles-55bee508991dc5384a4573105c668d107a9b7ded.tar dotfiles-55bee508991dc5384a4573105c668d107a9b7ded.tar.gz dotfiles-55bee508991dc5384a4573105c668d107a9b7ded.tar.bz2 dotfiles-55bee508991dc5384a4573105c668d107a9b7ded.tar.lz dotfiles-55bee508991dc5384a4573105c668d107a9b7ded.tar.xz dotfiles-55bee508991dc5384a4573105c668d107a9b7ded.tar.zst dotfiles-55bee508991dc5384a4573105c668d107a9b7ded.zip |
Added plugins. Also added .profile due ubuntu's GDM xsession req
Xsession only source .profile.
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 58 |
1 files changed, 58 insertions, 0 deletions
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 + |