Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to export custom method to ~/.fancy-git/prompt.sh #117

Open
sudhir600 opened this issue Mar 3, 2022 · 0 comments
Open

how to export custom method to ~/.fancy-git/prompt.sh #117

sudhir600 opened this issue Mar 3, 2022 · 0 comments

Comments

@sudhir600
Copy link

I have a custom method to set terminal title as below

function title() {
  if [[ -z "$ORIG" ]]; then
    ORIG=$PS1
  fi
  TITLE="\[\e]2;$*\a\]"
  PS1=${ORIG}${TITLE}
}

this method sets the terminal title. ($ title "my title")
but as in .bashrc file, there is a new line at the end as .~/.fancy-git/prompt.sh and this is preventing to execute that method...
So, may you suggest how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant