My scripts for startup, dmenu, and the command line
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/sh
- #This is a wrapper script for editing files from nnn. It checks if it nnn is running in tmux then calls the appropriate editor.
-
- if ! { [ "$TERM" = "tmux-256color" ] && [ -n "$TMUX" ]; } then
- # Remove option --tab for new window
- st -e vim $*
- else
- # tmux session running
- vim $* #tmux -u split-window "vim \"$*\""
- fi
|