mirror of
				https://github.com/tmux-plugins/tmux-resurrect.git
				synced 2025-11-04 00:46:04 +00:00 
			
		
		
		
	Rename default strategy to ps
				
					
				
			This commit is contained in:
		@@ -5,6 +5,7 @@
 | 
			
		||||
  'default' strategy.
 | 
			
		||||
- save command strategy: 'pgrep'. It's here only if fallback is needed.
 | 
			
		||||
- save command strategy: 'gdb'
 | 
			
		||||
- rename default strategy name to 'ps'
 | 
			
		||||
 | 
			
		||||
### v1.3.0, 2014-09-20
 | 
			
		||||
- remove dependency on `pgrep` command. Use `ps` for fetching process names.
 | 
			
		||||
 
 | 
			
		||||
@@ -66,9 +66,9 @@ dump_panes_raw() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
_save_command_strategy_file() {
 | 
			
		||||
	local save_command_strategy="$(get_tmux_option "$save_command_strategy_option" "default")"
 | 
			
		||||
	local save_command_strategy="$(get_tmux_option "$save_command_strategy_option" "$default_save_command_strategy")"
 | 
			
		||||
	local strategy_file="$CURRENT_DIR/../save_command_strategies/${save_command_strategy}.sh"
 | 
			
		||||
	local default_strategy_file="$CURRENT_DIR/../save_command_strategies/default.sh"
 | 
			
		||||
	local default_strategy_file="$CURRENT_DIR/../save_command_strategies/${default_save_command_strategy}.sh"
 | 
			
		||||
	if [ -e "$strategy_file" ]; then # strategy file exists?
 | 
			
		||||
		echo "$strategy_file"
 | 
			
		||||
	else
 | 
			
		||||
 
 | 
			
		||||
@@ -25,3 +25,4 @@ restore_process_strategy_option="@resurrect-strategy-"
 | 
			
		||||
inline_strategy_token="->"
 | 
			
		||||
 | 
			
		||||
save_command_strategy_option="@resurrect-save-command-strategy"
 | 
			
		||||
default_save_command_strategy="ps"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user