fuck.bashrc: Added usage message to failure state
This commit is contained in:
parent
5d1b1c30e0
commit
1f63e97472
2 changed files with 8 additions and 1 deletions
|
@ -3,6 +3,9 @@ function fuck {
|
||||||
local nth_last=${1:-1}
|
local nth_last=${1:-1}
|
||||||
if [[ "$nth_last" =~ ^[0-9]+$ ]]; then
|
if [[ "$nth_last" =~ ^[0-9]+$ ]]; then
|
||||||
sudo $(fc -ln -$nth_last -$nth_last)
|
sudo $(fc -ln -$nth_last -$nth_last)
|
||||||
|
else
|
||||||
|
echo "Usage: fuck [offset]"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
.github/README.md
vendored
6
.github/README.md
vendored
|
@ -26,7 +26,7 @@ git --work-tree=$HOME --git-dir=$HOME/.dotgit checkout master
|
||||||
- Status area horizonzal spacing
|
- Status area horizonzal spacing
|
||||||
- Vitals
|
- Vitals
|
||||||
|
|
||||||
# Missing Features (TODO)
|
## Missing Features (TODO)
|
||||||
- Vim relative line numbering
|
- Vim relative line numbering
|
||||||
- unset all variables
|
- unset all variables
|
||||||
- Initial Setup
|
- Initial Setup
|
||||||
|
@ -38,3 +38,7 @@ git --work-tree=$HOME --git-dir=$HOME/.dotgit checkout master
|
||||||
- environment templates? (git.env!)
|
- environment templates? (git.env!)
|
||||||
- fix the umask
|
- fix the umask
|
||||||
|
|
||||||
|
## Echos to be replaced by msg()
|
||||||
|
- fuck error msg
|
||||||
|
- initial setup
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue