Difference between revisions of "SQWareProduction:generic:etc:.profile confort"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
Line 4: Line 4:
 
Alias explanation:
 
Alias explanation:
 
<pre>
 
<pre>
put => "echo $gvsqw_EchoOpt '\033]0;${gvsqw_UserExec}@$gvsqw_Hostname      $gvsqw_Env    ${gvsqw_DbAlias}          (dbSQWare v$gvsqw_SqwVersion / $gvsqw_SqwVersionDbms)\033\\'"
 
 
  erase => 'stty erase ^H'
 
  erase => 'stty erase ^H'
 
  so => 'set -o emacs'
 
  so => 'set -o emacs'
  h => 'history -100'
+
  h => 'history'
 +
ht => 'HISTTIMEFORMAT="%Y-%m-%d %T ";history;unset HISTTIMEFORMAT'
 
  ll => 'ls -al'
 
  ll => 'ls -al'
 
  lt => 'ls -altr'
 
  lt => 'ls -altr'

Revision as of 16:01, 23 February 2025

File to put aliases $gvsqw_GenBin/../etc/.profile_confort:
Contains confort aliases of SQWareProduction for generic.

Alias explanation:

 erase => 'stty erase ^H'
 so => 'set -o emacs'
 h => 'history'
 ht => 'HISTTIMEFORMAT="%Y-%m-%d %T ";history;unset HISTTIMEFORMAT'
 ll => 'ls -al'
 lt => 'ls -altr'
 cls => 'clear'
 sg => 'size=$(du -sk .|cut -f1);((size=size/1024/1024));echo $gvsqw_EchoOpt "$size Go";date +"%Y-%m-%d %H:%M:%S"'
 sm => 'size=$(du -sk .|cut -f1);((size=size/1024));echo $gvsqw_EchoOpt "$size Mo";date +"%Y-%m-%d %H:%M:%S"'
 log => "cd $gvsqw_RootAdmin/logs; ls -ltr"