bashrc.d: added fuck
This commit is contained in:
parent
3ea46d1f59
commit
77eae6eee4
1 changed files with 9 additions and 0 deletions
9
.bashrc.d/fuck.sh
Normal file
9
.bashrc.d/fuck.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
# https://twitter.com/liamosaur/status/506975850596536320
|
||||
function fuck {
|
||||
local nth_last=${1:-1}
|
||||
if [[ "$nth_last" =~ ^[0-9]+$ ]]; then
|
||||
sudo $(fc -ln -$nth_last -$nth_last)
|
||||
fi
|
||||
}
|
||||
|
||||
alias please='fuck'
|
Loading…
Add table
Add a link
Reference in a new issue