General :: Bash Aliases Lost Within Tmux

Jul 8, 2011

I just noticed that my .bashrc aliases (eg. alias www='cd ~/data/public_html') don't work from within tmux. They work fine from screen, though.

I don't think I've got anything special in ~/tmux.conf

Code:
# C-a just like in screen
unbind C-b
set -g prefix C-a

[Code].....

View 3 Replies


ADVERTISEMENT

Ubuntu :: Bash Set Aliases Not Staying?

Feb 23, 2010

If I set an alias in the terminal it stays.

Code:
alias echo="echo whoaoaaoaoaoaoaoa"

But...if I write a bash script with the identical command and execute it...

Code:
./setalias
echo

I get nothing... How do I fix this?

View 9 Replies View Related

OpenSUSE :: Bash Aliases For Root - Where They Are Defined

Sep 26, 2010

Output of my #alias command looks just as normal as one would expect:
Code:
alias +='pushd .'
alias -='popd'
alias ..='cd ..'
alias ...='cd ../..' .....

And still whenever I (as root) type in bash
#ll
which would be short for
#ls- l
i get output of the command
#ls -al

So where aliases for root overwritten? Usually I would expect .bashrc in the /root directory. Or at least .alias file. But there none of those in my current /root. So, my question is where root user gets it's aliases from? This concerns only root user. Normal user has .bashrc and I made up my own aliases in .alias and that's works jut fine. And yes I could make .bashrc file in the /root and .aliases where I would define my own things.

View 4 Replies View Related

Ubuntu :: How To Activate Bash Aliases In Lucid

May 16, 2010

So I checked the /etc/bash.bashrc file and it doesn't have the
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

I expected it to. So I checked the The /usr/share/base-files, and there it is. Problem is, it isn't part of the system wide bash, or is it? How do I activate the bash_aliases in Lucid Lynx?
Quick un-related question. Is ./ = /.??

View 2 Replies View Related

Ubuntu :: Create Some Aliases For Bash Shell?

Jun 14, 2010

I would like to create some aliases for bash shell. On other Unix/Linux machines I have done this using the alias command like this: alias rm rm -i

When I type that into a terminal on Ubuntu, it looks like alias is not installed. I get this:

bash: alias: rm: not found
bash: alias: rm: not found
bash: alias: -i: not found

I tried adding the alias to .bashrc instead, but then I get the same error message every time I start terminal. Just for fun I tried apt-get install alias, just to see what would happen, and it installed something called libperl-alias instead, and alias still doesn't work.

View 2 Replies View Related

Software :: Aliases - Using /etc/aliases - Does Not Get Routed To My Email

Apr 1, 2009

I am able to send a mail message to myself from a server without any problem...

But after I have updated /etc/aliases and added the line for all of root's mail to be routed to me....

Added:
root: myemail@company.com

and ran newaliases to implement it....

If I send a mail message to root, it does not get routed to my email...

View 3 Replies View Related

General :: Tmux Ctrl-b Not Working?

Apr 5, 2011

Holding CTRL and B followed by another command key usually gives me nothing.I have no .conf file so I'm not overwriting it.

View 1 Replies View Related

General :: Tmux Disregarding The Configuration File?

Sep 14, 2010

I just installed tmux on Ubuntu 10.04 and tried to remap the prefix key to C-a by creating the file ~/.tmux.conf with these lines:

set-option -g prefix C-a
unbind-key C-b

When starting tmux, both regularly and with -f ~/.tmux.conf, the prefix is effectively the same default C-b

There are no errors or warnings whatsoever.

View 2 Replies View Related

General :: Launching TMUX Using Gnome Terminal

Oct 18, 2010

I'm a little confuse regarding how one launches tmux. When I launch my terminal (current gnome-terminal), I would like to have tmux up and running. I'm currently doing this by calling "tmux" in my .zshenv (kind of like .bashrc in bash). This does in fact launch tmux, but has some annoying side effects. First, hitting Ctrl-D to exit the shell, only kills tmux, and leaves the tmux-less gnome-terminal still running. An additional Ctrl-D will kill that as well. Second, when ssh into a box with this setup, I get a second, nested instance of tmux. I don't want tmux to launch again when I ssh. Is this the right approach, how should tmux be launched usually?

View 2 Replies View Related

General :: Get The Tmux Window Full Width?

Jun 21, 2011

tmux shows screen like this:

[code]...

Window has non-maximum width, attempt to copy text from it leads to "" getting in text. How to fix it and get the tmux window full width?

View 2 Replies View Related

General :: Slight Delay When Switching Modes In Vim Using Tmux Or Screen

Mar 2, 2011

Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After pressing Esc and any other key afterwards the switch is immediate, and the command for the key pressed after Esc is executed. Any idea what might cause this?The Vim configuration is not the problem as the delay does not occur when I run Vim outside tmux, so this is probably related to tmux somehow. I use gnome-terminal btw.

Also worth noting, it seems I can not define key bindings in tmux for Esc, my plan was to bind Esc to:bind Escape send-keys.Alas, it seems binding anything to Esc for tmux does not work. The same problem occurs in screen as well.

View 2 Replies View Related

General :: Find Where Aliases Are Located?

Aug 5, 2011

Below are few of my questions that i am worried about.

1. alias command will list me all aliases. How to find where these aliases are located?

2. Please suggest me few resources on XWindows

View 5 Replies View Related

General :: Possible To See Log Files On Browser - Setting Up Aliases?

Jul 22, 2011

I'm trying to make it possible to see my logfiles on a browser. For instance, I want to browse to [URL] and see a listing of all my logfiles. Because the logfiles reside outside of the web content directory, I'm trying to set up an Alias. Here's how I'm doing it:

Code:
Alias /logfiles /path/to/my/logfiles
<Directory /path/to/my/logfiles>
Order allow,deny
Allow from all
</Directory>
Then I restart apache /etc/init.d/httpd restart

When I browse to [URL] I get a 404. I've been online all morning looking for a solution and all I find is what I've already done. BTW, this is a RHEL 5 on a LAMP stack.

View 6 Replies View Related

Slackware :: Download Tmux 1.3 From Slackbuilds?

Apr 2, 2011

I downloaded tmux 1.3 from slackbuilds

And when I am running tmux.SlackBuild

I get this output:

Code:
Configured for Linux
cc -O2 -march=i486 -mtune=i686 -DBUILD=""1.3"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -c -o attributes.o attributes.c
In file included from attributes.c:23:
tmux.h:30:19: error: event.h: No such file or directory

[Code].....

View 2 Replies View Related

General :: VI Command Mode - Aliases Only Work In RHEL4

Jul 1, 2009

When in command mode one can come out of the file temporarily by Code: :sh in command mode. When I find myself on the shell on RH 9 the aliases dont work but in RHEL 4 all aliases work like charm. Does anyone know why is it so?

View 4 Replies View Related

General :: Aliases Work After Running Sudo SU Command?

May 7, 2010

I can make aliases fine by editing the .bashrc file in my home directory, but the first thing I do when I open a terminal window is sudo su so I don't have to type sudo in front of every command. The problem is, I am then not able to use my aliases. How can I make aliases that work after I run the sudo su command?

View 2 Replies View Related

General :: Email Aliases - How To Capture Some Items From Message

Jul 5, 2010

I have an email alias and I want to capture some items in the email body and put it in a database.

I'm using Linux and Bash.
In /etc/aliases I have:
bexpense: "|/usr/bin/bexpense"In /usr/bin/bexpense, I have:
#!/bin/bash
echo $1 $2 >> bexpense.out

If I just run /usr/bin/bexpense with as "bexpense test test" I get "test test" in bexpense.out. If I send email to bexpense@myserver.com, I get a blank line in bexpense.out. How do I get the subject and body of the email?

View 2 Replies View Related

General :: Create Aliases With Echoing Text Into The Variable?

Apr 29, 2011

For example if you want to create an alias in Linux with a message echoed into the variable would the following command be; alias hello="(echo)"Hello." "? I'm trying to learn some environment variables and aliases.

View 4 Replies View Related

Software :: Tmux: Setting Up Panes And The Programs In Them By Default?

Jan 11, 2011

I'm trying to get tmux to open a certain set of panes an certain programs in those panes by default and open that way every time I run tmux. Is there any way to do this?

I read in the documentation commands for this, but i have no idea where to begin.

View 2 Replies View Related

Debian :: Jessie - Zsh In Tmux / Tab Menu Selection Stopped Working

Jun 29, 2015

I installed Jessie (8.1.0) and encountered a problem which is non-existent in Wheezy (7.8.0).

My shell is zsh and I use tmux both installed from packages, I use this zsh feature that when you type "ls /" and then hit "Tab" twice, it will present you a menu where you can select the directory you want navigating the menu with the arrow keys. It works fine out of tmux (in bare shell) but stopped working inside a tmux session. In bare shell you hit Tab twice and get into the menu, in tmux you hit Tab twice and it displays the table of suggestions but just keeps cycling suggestions (cycling directory names) and not sending me to the menu.

Here's some screenshots:

1) Working (no tmux): I hit tab twice and got in the menu.

2) Not working (in tmux): I hit tab twice and it just cycled directory names after "/"

t isn't in my config file, I tried without my .tmux.conf (with tmux set to default settings) and it still had no effect.

View 5 Replies View Related

Ubuntu :: Bash Broken, Lost Functionality In Terminal (gnome-terminal)?

Dec 10, 2010

Linux-goers. I did some research on this, but I am still fairly new to Linux. In Ubuntu 10.10 (Maverick), I accidentally overwrote my "/bin/bash" file. Dude, using "sudo" with a small typo can work disasters. Bash is now broken in the Terminal (gnome-terminal). Terminal itself still works fine, technically, but bash is still hosed/broken. Here is what I did to try to fix it: Booted from Ubuntu 10.10 live CD. Mounted my Ubuntu partition and manually copied the good/fresh "bash" file onto my hard drive. Verified copy was successful. Didn't help, as you see. Reinstalled "gnome-terminal" using synaptic package manager. Tried to reinstall bash via synaptic, it failed with error, "E: /var/cache/apt/archives/bash_4.1-2ubuntu4_i386.deb: subprocess new pre-removal script returned error exit status 2"

In Terminal, all basic commands work as far as I can tell. ("ls", "pwd", navigation, etc.) Here are some problems:My "username@computername" does not display in the prompt; only the $ sign. Bash keyboard shortcuts such as uparrow and tab do not work. Instead, each inserts a key code. I can't even move the cursor left/right. Aliases (a function of bash and .bashrc) are broken, of course. My sanity level decreases when I use Terminal now. For what it's worth, even with "sudo" I get a "permission denied" error when trying to run Google Chrome! I read something about a ".bashrc" file being a possible problem, but I don't know how to make it work, or the file's proper locations in Ubuntu 10.10. Is there something I can do with a "make" or "apt-get install" command or something?? Could this simply be a permissions problem? Is the link to "/bin/bash", "/bin/sh", or a ".bashrc" file broken? Guide me, oh Linux gurus.

P.S. I always wondered what exactly bash was and how it was different from the basic terminal. LoL, this is an excellent way to demonstrate the difference, and I WANT IT BACK!

View 9 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related

General :: Running Bash But Common Bash Commands Not Working?

Jul 17, 2010

below are the details of my system. I have bash as my current shell, some really common commands aren't working.

Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of [URL])

Code:
root@sdptfw:~ # uname -a
Linux sdptfw.sdpt.co.za 2.4.36 #1 Tue Jul 22 13:13:24 GMT 2008 i686 i686 i386 GNU/Linux
root@sdptfw:~ # echo $SHELL$
/bin/bash$

[Code]....

View 13 Replies View Related

Debian :: Aliases For Apt With Autocompletion?

Feb 10, 2011

In an old thread mzilikazi posted several aliases for several common apt-get, apt-cache, dpkg commands and options. I thought this was a great idea and adopted my own list. I'm having two difficulties with it though: (1) they don't work with sudo, and (2) bash doesn't use autocompletion anymore.

1. sudo I've placed the aliases in the .bashrc profiles of my user and of root, and logged back in. As root the aliases work. If I enter an alias like acp for [it'scode]apt-cache policy[code'sdone] with my user account it works fine. Sweet sudo, however, apparently doesn't support bash aliases. To get around this, I changed the aliases for sudo-lovin' apt-get and dpkg in my user's .bashrc from [code!]alias agi="apt-get install"[!edoc] to [code!]alias agi="sudo apt-get install"[nocode]. Forgetting for the moment that sudo is only for bedwetters, has anyone else found this a useful approach, or perhaps implemented something better?

2. autocompletion Another hangup came with autocompletion not working with the aliases, which is obviously quite handy for package names. A google I once knew told me a thing or two about that. I don't get down with funky-chunky foreign web scripts I can't interpret... which so far is all of them... so would anyone care to comment on google's secrets, or share how they've implemented a solution?

View 2 Replies View Related

Debian :: Add Some Aliases To System?

Sep 8, 2010

but I tried to resolve all forms and failed. Want to add some aliases to my system, I put the snippet below in my /etc/profile but nothing happened. Also tried to put in ~/.profile and ~/.bashrc but nothing worked.

What am I doing wrong?
## /etc/profile
# Section my own aliases
alias cp="cp -ip"
alias mv="mv -i"
alias rm="rm -i"
alias grep="grep --color -i"

View 5 Replies View Related

Fedora :: Where Are The Aliases Defined

Oct 15, 2009

Upon a fresh install of Fedora 11 (and as a Fedora n00b), I noticed there are several aliases defined for me.

Code:

$ alias
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'

[code]...

files had these aliases. So where are they?

View 14 Replies View Related

Software :: Get The Menu To Use Aliases?

Aug 27, 2010

Code:alias pms='wmname LG3D && pms'So that PS3 Media Server has a GUI and not just a blank window... this works if run from terminal but not when typed in my menu... how can I get Awesome to use the alias? Using:Code:{ "PS3 Media Server", "wmname LG3D && pms" }doesn't work.

View 2 Replies View Related

Fedora Installation :: F12 - How To Set IP Aliases For Apache2

Jan 25, 2010

I need a How to: on setting up IP Aliases for Apache2 IP-Based Virtual Hosts

View 2 Replies View Related

Debian :: Aliases Not Working In EXIM4?

Oct 28, 2010

I recently P2V'd a debian box, and the aliases file (/etc/aliases) is no longer working. As the physical machine is still working, this machien has been renamed to buzz1 [from buzz].

I changed /etc/mailname, /etc/exim4/update-exim4.conf.conf [and ran the update-exim4.conf script] and also ran newaliases. however it still does not seem to be applying the aliases file:

Live Physical Machine:
buzz:~# exim -bt root@buzz.domain.com
R: system_aliases for root@buzz.domain.com
R: smarthost for cronjobs@domain.com cronjobs@domain.com
<-- root@buzz.domain.com

[Code]....

View 7 Replies View Related

Server :: Activate Aliases From A Script?

Jan 17, 2010

I wrote a small script :

#cat myscript.sh
NEWFILE=dojas.sh
touch $NEWFILE

in that script I create some alias commands an pipe them to a new shell script (called dojas.sh) however after execution of that script , I do not see the aliases jan1 and jan2 in my terminal. Even if I execute the dojas.sh srcipt manually , I do not see the aliases in the alias output of my terminal. The only way I can make the aliases active is do the following : cat dojas.sh copy and paste the alias rules, and they are active in my session. How can I make sure that I can activate aliases and they are active in my terminal from a script ?

Note : I am not interested in .bashrc file, I want them to be active in my current session.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved