mirror of
				https://gitlab.com/ceda_ei/wish
				synced 2025-10-31 01:50:04 +01:00 
			
		
		
		
	Revert "Update plugins to new specification for wish_append"
This reverts commit b389774a50.
Since PS1 escape codes are allowed once more, this commit is no longer
needed.
			
			
This commit is contained in:
		| @@ -12,5 +12,5 @@ function wish_hostname_set_colors() { | |||||||
| } | } | ||||||
|  |  | ||||||
| function wish_hostname_main() { | function wish_hostname_main() { | ||||||
| 	wish_append $WISH_HOSTNAME_BG $WISH_HOSTNAME_FG " $HOSTNAME " | 	wish_append $WISH_HOSTNAME_BG $WISH_HOSTNAME_FG " \h " | ||||||
| } | } | ||||||
|   | |||||||
| @@ -14,9 +14,9 @@ function wish_path_set_colors() { | |||||||
|  |  | ||||||
| function wish_path_main() { | function wish_path_main() { | ||||||
| 	if [[ -w $PWD ]]; then | 	if [[ -w $PWD ]]; then | ||||||
| 		local path=" ${PWD/$HOME/\~} " | 		local path=" \w " | ||||||
| 	else | 	else | ||||||
| 		local path=" ${PWD/$HOME/\~}$WISH_PATH_NO_WRITE_SUFFIX " | 		local path=" \w$WISH_PATH_NO_WRITE_SUFFIX " | ||||||
| 	fi | 	fi | ||||||
| 	wish_append $WISH_PATH_BG $WISH_PATH_FG "$path" | 	wish_append $WISH_PATH_BG $WISH_PATH_FG "$path" | ||||||
| } | } | ||||||
|   | |||||||
| @@ -12,5 +12,5 @@ function wish_username_set_colors() { | |||||||
| } | } | ||||||
|  |  | ||||||
| function wish_username_main() { | function wish_username_main() { | ||||||
| 	wish_append $WISH_USERNAME_BG $WISH_USERNAME_FG " $USER " | 	wish_append $WISH_USERNAME_BG $WISH_USERNAME_FG " \u " | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user