From b2d90976fa2db5b15eed761479c039b2e346b2ff Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 3 Feb 2024 01:38:39 +0300 Subject: [PATCH] Ps : Rename to resolve name colision. --- .config/bash/module/Ps.sh | 8 ++++---- .doc/Bash.md | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/bash/module/Ps.sh b/.config/bash/module/Ps.sh index da902ba..0cf995b 100644 --- a/.config/bash/module/Ps.sh +++ b/.config/bash/module/Ps.sh @@ -1,11 +1,11 @@ # Find process and filter. -# Usage: ps [PROCESS] -function ps() { +# Usage: fps [PROCESS] +function fps() { local process="${1}" if [[ "${process}" = "" ]]; then - /usr/bin/env ps aux + ps aux else - /usr/bin/env ps aux | sed -n -e "1p" -e "/${process}/Ip" | sed -e "/sed -n -e 1p -e/d" + ps aux | sed -n -e "1p" -e "/${process}/Ip" | sed -e "/sed -n -e 1p -e/d" fi } diff --git a/.doc/Bash.md b/.doc/Bash.md index 7f04567..8c5058a 100644 --- a/.doc/Bash.md +++ b/.doc/Bash.md @@ -182,6 +182,7 @@ Command|Description `fix_ethernet_speed `|Fix when ethernet mistakenly detects 100 Mb instead of 1000 Mb. SPEED is one of 10/100/1000 etc. `fix_files_sftp`|Fix nautilus after typing wrong sftp password. `fix_gradle_lock`|Delete lost Gradle lock files. +`fix_gnome_rdp`|Fix Gnome's broken RDP ffs. ## Git. @@ -326,7 +327,7 @@ Command|Description Command|Description ---|--- -`ps [PROCESS]`|Find process and filter. +`fps [PROCESS]`|Find process and filter. ## Random.