title: how to write a function in bash_profile
body: <p>how can we write a simple regular function which i can put in my bashprofile
  which can be used to secure console to any host i want.</p>
  
  <p>but my secure console has to go through a jump host. that is the issue.</p>
  
  <pre><code>function func_name () {
   ssh jumphostname; 
   sc $hostname # from jump host secure console to another host given as input from terminal
  }
  </code></pre>
  
  <p>this function only making to login in to jump host but not to secureconsole in to another host from there.</p>
  
  <p>-bash-4.1$func_name host.me.com
  should give me console to host.me.com via jumphost</p>
  
  <p>is function for this not possible?
  do i have to write a script?</p>