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
local NAME
NAME=${1%.*}
NAME=${NAME%.*}
NAME=${1%%.*} # removes extension from filename
if [ -e "$NAME" ]; then
echo "extract: error: '$NAME' exists" >&2
@ -89,5 +89,5 @@ extract () {
mcd () {
mkdir -p "$1" && cd "$1" || return
mkdir -p "$1" && cd "$1" || return
}

View File

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