Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

app-misc/screen ignores alias setting

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
punkid
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Sat Dec 18, 2004 8:23 am
Location: offline

app-misc/screen ignores alias setting

  • Quote

Post by punkid » Sat Jun 28, 2008 5:41 am

I have a bunch of alias setting in my .aliasrc file, and append

Code: Select all

source ~/.aliasrc
to the .bashrc.

However, the screen app seems to ingore all of these aliases, I cannot use 'em in screen. Does anyone have an idea on how to solve this ?

Best Regards.
My Blog | Latest Screenshot
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Sat Jun 28, 2008 7:39 pm

put '[[ $TERM==screen ]] && echo hello from screen' just before the line you add in you bashrc, start screen, and see if, when you open a new window, you have the 'hello from screen' text printed.

If you do then show us you ~/.aliasrc, otherwise check your ~/.bashrc to see if you have TERMinal specific actions ( you can also post your bashrc, (without the comments) if it's not too long.
The End of the Internet!
Top
punkid
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Sat Dec 18, 2004 8:23 am
Location: offline

  • Quote

Post by punkid » Sun Jun 29, 2008 11:38 am

Unfortunately it doesnt work, and here is my ~/.bashrc file.

Code: Select all

if [[ $- != *i* ]] ; then
	return
fi

if [[ -f ~/.dir_colors ]]; then
	eval `dircolors -b ~/.dir_colors`
else
	eval `dircolors -b /etc/DIR_COLORS`
fi

case ${TERM} in
	xterm*|rxvt*|Eterm|aterm|kterm|gnome)
		PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
		;;
	screen)
		PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
		;;
esac

[[ -f /etc/profile.d/bash-completion ]] && source /etc/profile.d/bash-completion
shopt -s histappend
source ~/.aliasrc
My Blog | Latest Screenshot
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Mon Jul 07, 2008 11:48 am

hello again, did you solve this?

what if you put this line in your .aliasrc: "echo hello from .aliasrc"

and now when you start a new window in screen, do you see the hello message?
The End of the Internet!
Top
punkid
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Sat Dec 18, 2004 8:23 am
Location: offline

  • Quote

Post by punkid » Tue Jul 08, 2008 8:03 am

Hi, truc. Currently I am on my summer vocation, thus I'm not available at my Gentoo box of my college dorm.
However, I tried the same ~/.bashrc profile and ~/.aliasrc setting in my home archlinux system, the screen works pretty well, and I can see the echo line appended in ~/.aliasrc.
My Blog | Latest Screenshot
Top
Post Reply

5 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy