Ps : Rename to resolve name colision.

This commit is contained in:
Dmitry Voronin 2024-02-03 01:38:39 +03:00
parent efb18dfb8e
commit b2d90976fa
2 changed files with 6 additions and 5 deletions

View file

@ -1,11 +1,11 @@
# Find process and filter. # Find process and filter.
# Usage: ps [PROCESS] # Usage: fps [PROCESS]
function ps() { function fps() {
local process="${1}" local process="${1}"
if [[ "${process}" = "" ]]; then if [[ "${process}" = "" ]]; then
/usr/bin/env ps aux ps aux
else 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 fi
} }

View file

@ -182,6 +182,7 @@ Command|Description
`fix_ethernet_speed <DEVICE> <SPEED>`|Fix when ethernet mistakenly detects 100 Mb instead of 1000 Mb. SPEED is one of 10/100/1000 etc. `fix_ethernet_speed <DEVICE> <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_files_sftp`|Fix nautilus after typing wrong sftp password.
`fix_gradle_lock`|Delete lost Gradle lock files. `fix_gradle_lock`|Delete lost Gradle lock files.
`fix_gnome_rdp`|Fix Gnome's broken RDP ffs.
## Git. ## Git.
@ -326,7 +327,7 @@ Command|Description
Command|Description Command|Description
---|--- ---|---
`ps [PROCESS]`|Find process and filter. `fps [PROCESS]`|Find process and filter.
## Random. ## Random.