title: Call a hidden shell script file in .bashrc file in ubuntu
body: <p>I've created a shell script and placed in home directory. but to make it invisible I put a DOT  before it's name. I mean <code>.filename.sh</code>. Now I want to call this file through <code>.bashrc</code> file which is also invisible and placed in home directory.</p>
  
  <p>I tried </p>
  
  <p><code>sh .filename.sh</code> and 
  <code>sh filename.sh</code> both but no success. </p>
  
  <pre><code># ~/.bashrc: executed by bash(1) for non-login shells.
  # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  # for examples
  
  . filename.sh   #I'm trying to call this script here at the beginning of the file
  
  # If not running interactively, don't do anything
  case $- in
      *i*) ;;
        *) return;;
  esac
  
  # don't put duplicate lines or lines starting with space in the history.
  # See bash(1) for more options
  HISTCONTROL=ignoreboth
  
  # append to the history file, don't overwrite it
  shopt -s histappend
  
  # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  HISTSIZE=1000
  HISTFILESIZE=2000
  ...
  ...  #some more content in .bashrc file
  ...
  </code></pre>
  
  <p>this shell script will print something on terminal whenever we open new tab or window in terminal.</p>
  
  <p>EDIT:
  I tried <code>. .filename.sh</code> but it works only when we are in home directory I mean (<code>user@user$</code>)
  but it should work for all directory, I mean no matter where am I (for instance suppose I'm in Desktop <code>user@user:~/Desktop$</code>) and now if I open a new tab it shows error. It should work because when I put same content directly in .bashrc file instead of calling this sh file then it works well for all directory .</p>