Skip to content

Commit 0d369b0

Browse files
authored
refreshenv
1 parent a2941e6 commit 0d369b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Linux/.bashrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ function nixbuild_static()
258258
nix-build '<nixpkgs>' --impure --attr "pkgsStatic.$1" --cores "$(($(nproc)+1))" --max-jobs "$(($(nproc)+1))" --log-format bar-with-logs --out-link "./NIX_BUILD"
259259
}
260260
export -f nixbuild_static
261+
function refreshenv()
262+
{
263+
source "$(realpath "${HOME}/.bashrc" | tr -d '[:space:]')"
264+
}
265+
export -f refreshenv
261266
function strip_debug()
262267
{
263268
objcopy --remove-section=".comment" --remove-section=".note.*" "$1" 2>/dev/null
@@ -316,7 +321,6 @@ export PATH
316321
#-------------------------------------------------------------------------------#
317322
##FZF
318323
if [[ "${NO_FZF}" != 1 ]]; then
319-
if sudo -n true 2>/dev/null; then
320324
if [[ "${PASSWORDLESS_SUDO}" == 1 ]]; then
321325
if command -v batcat &>/dev/null && ! command -v bat &>/dev/null; then
322326
sudo ln -s "$(realpath $(command -v batcat))" "${HOME}/.local/bin/bat"

0 commit comments

Comments
 (0)