File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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}
260260export -f nixbuild_static
261+ function refreshenv()
262+ {
263+ source " $( realpath " ${HOME} /.bashrc" | tr -d ' [:space:]' ) "
264+ }
265+ export -f refreshenv
261266function strip_debug()
262267{
263268 objcopy --remove-section=" .comment" --remove-section=" .note.*" " $1 " 2> /dev/null
@@ -316,7 +321,6 @@ export PATH
316321# -------------------------------------------------------------------------------#
317322# #FZF
318323if [[ " ${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"
You can’t perform that action at this time.
0 commit comments