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