diff --git a/.bash_functions b/.bash_functions index b9521ae..036a810 100644 --- a/.bash_functions +++ b/.bash_functions @@ -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 } diff --git a/README.md b/README.md index 6261776..7fc5507 100644 --- a/README.md +++ b/README.md @@ -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 |