Skip to content

beingj/rc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to do work interactively

Problem

  • Press Tab again and agin when cd to some very deep directories or vim some files in a deep directories.
  • Input a very long file name again and again to try different commands: unzip, tar , file, vim…

Installation

Install percol

Download the package and extract it. Copy the sub-directory “percol/” to “~/bin”. Rename “percol” in sub-directory “bin” to “percol.py” and copy it to “~/bin”.

unzip percol-master.zip
cd percol-master
mkdir ~/bin
cp percol ~/bin -a
cp bin/percol ~/bin/percol.py 

Verify installation:

ps ax | percol.py

Intall this script

Copy this script (rc.sh) to “~/” and source it from “~/.bashrc”.

cp rc.sh ~/
echo . ~/rc.sh >> ~/.bashrc 

Usage

cdd

Cd to a very deep directory. ./cdd.gif

ff

Find a file by locate, and perform some actions to it. ./ff.gif

lss

Find a file by find in current directory and sub directoris, and perform some actions to it. ./lss.gif

pss

Find a process by ps and kill it. ./pss.gif

r

Run a command in my favorite command list. ./r.gif

h

Run a command in history. ./h.gif

Acknowledge

This script is inspired by How to do the file navigation efficiently

About

a script to do work interactively

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages