title: Printing executed commands
body: <p>How can I print executed commands in fish shell?</p>
  
  <p>I've tried solutions from <a href="https://stackoverflow.com/questions/2853803/in-a-shell-script-echo-shell-commands-as-they-are-executed">In a shell script: echo shell commands as they are executed</a>, but they are not compatible with fish shell.</p>