]> git.phdru.name Git - dotfiles.git/blobdiff - .bashrc
.bashrc: Copy minor initialization from `.profile`
[dotfiles.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 4a2414509a2936ec79bcd8c2867adebca5280562..97a08b9a96a268f104ae56d6b02951151e167d0a 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -6,6 +6,11 @@
 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
 # for examples
 
+# Copied from .profile to do minor initialization for non-interactive non-login-shells
+umask 077
+
+PATH="$HOME"/bin:"$HOME"/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+
 # If not running interactively, don't do anything
 case $- in
     *i*) ;;
@@ -30,7 +35,6 @@ shopt -s checkwinsize
 
 [ "`type -t ls`" = alias ] && unalias ls
 [ "`type -t ll`" = alias ] && unalias ll
-[ "`type -t mc`" = alias ] && unalias mc
 
 back() { cd - "$@"; }
 functions() { typeset -f "$@"; }