From abc65fb8d4a0823019f59b032533d9e32bc566e3 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Thu, 6 Jun 2024 23:08:06 +0800 Subject: [PATCH] feat(deno): autoload deno CLI to path, alongside some changes to .profile Signed-off-by: Andrei Jiroh Halili --- .config/bash/tools/deno.bashrc | 4 ++++ .profile | 26 ++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .config/bash/tools/deno.bashrc diff --git a/.config/bash/tools/deno.bashrc b/.config/bash/tools/deno.bashrc new file mode 100644 index 0000000..a10a9f3 --- /dev/null +++ b/.config/bash/tools/deno.bashrc @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export DENO_INSTALL="$HOME/.deno" +[ -d "$DENO_INSTALL/bin" ] && export PATH="$DENO_INSTALL/bin:$PATH" \ No newline at end of file diff --git a/.profile b/.profile index 3720062..b0e15dd 100644 --- a/.profile +++ b/.profile @@ -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 \ No newline at end of file