My scripts for startup, dmenu, and the command line
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ewrap 345 B

4 år sedan
4 år sedan
4 år sedan
4 år sedan
12345678910111213
  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. # tmux -u split-window vim "$@"
  9. # wait $!
  10. vim "$@"
  11. fi