My scripts for startup, dmenu, and the command line
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

12 líneas
332 B

  1. #!/bin/sh
  2. #This is a wrapper script for editing files from nnn. It checks if it nnn is running in tmux then calls the appropriate editor.
  3. if ! { [ "$TERM" = "tmux-256color" ] && [ -n "$TMUX" ]; } then
  4. # Remove option --tab for new window
  5. st -e vim $*
  6. else
  7. # tmux session running
  8. vim $* #tmux -u split-window "vim \"$*\""
  9. fi