mirror of
https://github.com/Clortox/HumanCallStack.git
synced 2026-03-07 10:37:57 +00:00
Add back base commands
This commit is contained in:
16
src/tpop
Executable file
16
src/tpop
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
#must have no arguments
|
||||
if [ "$#" -ne 0 ]; then
|
||||
echo "Usage:" $0
|
||||
echo "Remove the last element of the stack and prints it"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "${TODO_LOCATION}" ]; then
|
||||
TODO_LOCATION="$HOME/.config/stackToDo/todo"
|
||||
mkdir -p $HOME/.config/stackToDo
|
||||
fi
|
||||
|
||||
tail -1 $TODO_LOCATION
|
||||
sed -i '$ d' $TODO_LOCATION
|
||||
Reference in New Issue
Block a user