ref: extract func
This commit is contained in:
parent
8aa034b068
commit
28c7669c2d
@ -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
|
||||||
|
|||||||
@ -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 |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user