feat(deno): autoload deno CLI to path, alongside some changes to .profile

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
Andrei Jiroh Halili 2024-06-06 23:08:06 +08:00
parent 056170d4f9
commit abc65fb8d4
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
2 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
export DENO_INSTALL="$HOME/.deno"
[ -d "$DENO_INSTALL/bin" ] && export PATH="$DENO_INSTALL/bin:$PATH"

View file

@ -1,12 +1,32 @@
#!/usr/bin/env sh
# ~/.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
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
export PATH="/usr/local/bin:$HOME/.local/bin:$HOME/bin${PATH:+:}$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" # ~vern specifics and more
mesg n 2> /dev/null || true
@ -20,4 +40,6 @@ if [ -f "$HOME/.config/localconfig.env" ]; then
. "$HOME/.config/localconfig.env"
fi
_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true
if [[ $FF_BYOBU_ON_LOGIN != "" ]]; then
_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true
fi