Commit 4e3e0848c21f0cd308cc37837ff03cae2255243b

Better detection of GNU Screen in bashrc
Author: xaizek
Author date (UTC): 2018-03-25 17:53
Committer name: xaizek
Committer date (UTC): 2018-03-25 17:53
Parent(s): bfc5b05634fcd2337f39060f6e8cce081f23b881
Signing key: 99DC5E4DB05F6BE2
Tree: ba733c5a55e454b7a39aff059aa0a98dad945643
File Lines added Lines deleted
bashrc 2 7
File bashrc changed (mode: 100644) (index f5a2f36..b28015a)
... ... if [ -n "$SSH_CONNECTION" -a -z "$TMUX" ]; then
548 548 fi fi
549 549
550 550 # set screen title # set screen title
551 if [ -z "$TMUX" ]; then
551 if [ -n "$STY" ]; then
552 552 # when in shell, to current path # when in shell, to current path
553 case $TERM in
554 screen*)
555 PS1='\[\033k\w\033\\\]'$PS1
556 ;;
557 *) ;;
558 esac
553 PS1='\[\033k\w\033\\\]'$PS1
559 554 # otherwise to command name # otherwise to command name
560 555 PROMPT_COMMAND="echo -ne '\033k\033\0134';$PROMPT_COMMAND" PROMPT_COMMAND="echo -ne '\033k\033\0134';$PROMPT_COMMAND"
561 556 fi fi
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dotfiles

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dotfiles

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master