Trims fat and renames files
This commit is contained in:
parent
6021ad3194
commit
4563550969
40 changed files with 233 additions and 352 deletions
29
functions/history_functions.sh
Normal file
29
functions/history_functions.sh
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
HISTFILE=~/.zsh_history
|
||||
|
||||
|
||||
function wh_two_back {
|
||||
command=$(history | tail -n 2 | head -n 1 | cut -c 8-)
|
||||
echo -n $command
|
||||
}
|
||||
|
||||
|
||||
function wh_three_back {
|
||||
command=$(history | tail -n 3 | head -n 1 | cut -c 8-)
|
||||
echo -n "$command"
|
||||
}
|
||||
|
||||
|
||||
function wh_four_back {
|
||||
command=$(history | tail -n 4 | head -n 1 | cut -c 8-)
|
||||
echo -n "$command"
|
||||
}
|
||||
|
||||
|
||||
function wh_five_back {
|
||||
command=$(history | tail -n 5 | head -n 1 | cut -c 8-)
|
||||
echo -n "$command"
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue