summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-09-10 17:32:07 -0700
committerxyz <gky44px1999@gmail.com>2021-09-10 17:32:07 -0700
commitfe55c33f8290395d09ffc0cce19e4d071063b741 (patch)
treeb194076ad65bdc41127460fba4a2f3c924162548
parent7ccfa7e640292d459ebc92f76e4df0b23a9c7b7d (diff)
rename .bash_profile to .profile
-rw-r--r--.profile (renamed from .bash_profile)8
1 files changed, 3 insertions, 5 deletions
diff --git a/.bash_profile b/.profile
index 79c6a894..166b8e01 100644
--- a/.bash_profile
+++ b/.profile
@@ -1,12 +1,10 @@
-#
-# ~/.bash_profile
-#
+#!/bin/sh
# here `. ~/.bashrc` same as `source ~/.bashrc`, see `source filename` in `man bash`, and `. file` in `man dash`
# `. file` is POSIX compliant, while `source file` is not
# https://github.com/koalaman/shellcheck/wiki/SC3046
#[[ -f ~/.bashrc ]] && . ~/.bashrc
-[ -f ~/.bashrc ] && . ~/.bashrc
+[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
@@ -22,7 +20,7 @@ export XDG_MUSIC_DIR="$XDG_MUSIC_DIR"
export XDG_PICTURES_DIR="$XDG_PICTURES_DIR"
export XDG_VIDEOS_DIR="$XDG_VIDEOS_DIR"
-export PATH="$(find ~/.local/bin -type d -printf %p:)$PATH"
+export PATH="$(find "$HOME/.local/bin" -type d -printf %p:)$PATH"
export HISTSIZE=7000
export HISTFILESIZE=7000