]> git.phdru.name Git - dotfiles.git/blobdiff - .profile
.mc: Treat `*.m3u8` as playlists
[dotfiles.git] / .profile
index b336e2ad0489be9583bd0ba8b7cba5fd29cb5160..cdf0a88a00af9c067d1582377ebd0d8c6b31f32c 100644 (file)
--- a/.profile
+++ b/.profile
@@ -8,13 +8,8 @@
 # see /usr/share/doc/bash/examples/startup-files for examples.
 # the files are located in the bash-doc package.
 
-if test -n "$BASH_VERSION"; then
-   case "$SHELL" in
-      */bash) ;;
-      */*csh) SHELL=/bin/bash ;;
-      # this is for bash.exe
-      *command.com | *\\bash) SHELL=//c/ubin/bash ;;
-   esac
+#if test -n "$BASH_VERSION"; then
+#   bash
 #elif test -n "$KSH_VERSION"; then
 #   ksh93
 #elif test -n "$FCEDIT"; then
@@ -25,7 +20,7 @@ if test -n "$BASH_VERSION"; then
 #   unknown
 #else
 #   sh
-fi
+#fi
 
 if [ -z "$USER" ]; then
    USER="$LOGNAME"; export USER
@@ -175,33 +170,11 @@ if [ -t 0 ] ; then
    fi
 
    if test -n "$BASH_VERSION"; then
-      # display the user, host and current working directory
-      # in the terminal title
-      case "$TERM" in
-         *rxvt*|screen*|*term*|vt100)
-            OPS1="\[\033]0;${debian_chroot:+($debian_chroot)}\u@\h:\w\007\]"
-            case "$TERM" in
-               screen*)
-                  OPS1=${OPS1}"\[\033k${debian_chroot:+($debian_chroot)}\u@\h:\w\033\\\\\]" # Set screen/tmux caption
-               ;;
-            esac
-         ;;
-
-         *)
-            OPS1=""
-         ;;
-      esac
-
-      OPS1=${OPS1}"${debian_chroot:+($debian_chroot)}\u@\h \W "
-      . "$ENV"
-
+      . "$HOME/.bashrc"
    else
-      OPS1="${debian_chroot:+($debian_chroot)}`/usr/bin/whoami`@`/bin/hostname -s` "
+      PS1="${debian_chroot:+($debian_chroot)}`/usr/bin/whoami`@`/bin/hostname -s` > "
    fi
 
-   #PROMPT_DIRTRIM=2
-   export OPS1 # PROMPT_DIRTRIM
-
    ### biff controls new mail notification
    #biff n
    ### mesg controls messages (write/talk) from other users
@@ -304,9 +277,3 @@ fi
 #
 #    fi
 # fi
-
-if [ -n "$SSH_CONNECTION" -a -z "$STY" -a -t 0 ] &&
-   which screen >/dev/null 2>&1
-then
-   exec screen -xRR -S default
-fi