ref: extract func

This commit is contained in:
TheK4n 2021-10-14 23:53:55 +03:00
parent 8aa034b068
commit 28c7669c2d
2 changed files with 4 additions and 4 deletions

View File

@ -56,8 +56,8 @@ extract () {
fi fi
local NAME local NAME
NAME=${1%.*} NAME=${1%%.*} # removes extension from filename
NAME=${NAME%.*}
if [ -e "$NAME" ]; then if [ -e "$NAME" ]; then
echo "extract: error: '$NAME' exists" >&2 echo "extract: error: '$NAME' exists" >&2

View File

@ -85,7 +85,7 @@ rm -rf ~/BashConfig; git clone https://github.com/TheK4n/BashConfig && cp BashCo
### Vim ### Vim
| Command | Description | | Command | Description |
|:------------------: | :------------------------------------ | |:------------------ | :------------------------------------ |
|```Ctrl + [``` | Analog Esc | |```Ctrl + [``` | Analog Esc |
|```d -> Ctrl + End``` | Delete from cursor to end of file | |```d -> Ctrl + End``` | Delete from cursor to end of file |
| ```u``` | Undo | | ```u``` | Undo |