Here’s how to display history without the line numbers.

<pre lang="bash">
history -w /dev/stdout

Result

<pre lang="bash">
cd /etc/httpd/conf
view httpd.conf 
vim wiki.conf 
vim ssl.conf