I've just updated my server's (Ubuntu Server 12.04.01 LTS) profiles (copied/overwrote .bashrc & .bash_aliases) however when reconnecting to an SSH session as root I have to 'source ~/.bashrc' to get my aliases functioning again. The .bashrc is standard as on a fresh install apart from HISTSIZE & HISTFILESIZE, and there's no problems with my aliases file. It's pretty much a fresh install which I just reinitialized, I'm not sure what I've done wrong.
-rw-r--r-- 1 root root 1066 Nov 20 01:42 .bash_aliases
-rw------- 1 root root 327 Nov 20 02:09 .bash_history
-rw-r--r-- 1 root root 75 Nov 20 01:42 .bash_profile
-rw-r--r-- 1 root root 3486 Nov 20 02:04 .bashrc
drwx------ 2 root root 4096 Nov 20 00:27 .cache
-rw------- 1 root root 5 Nov 20 02:08 .nano_history
-rw-r--r-- 1 root root 140 Apr 19 2012 .profile
Any ideas anyone?
Oh I also can't run aliases inside of an sh (headed - #!/bin/bash) script, is that normal? I thought maybe it's related.
Bookmarks