mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 00:40:44 +02:00
bin: remove some scripts
This commit is contained in:
parent
5f0bb7e2cb
commit
f074052a95
2 changed files with 0 additions and 29 deletions
27
bin/ex
27
bin/ex
|
|
@ -1,27 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
ex() {
|
||||
file=$1
|
||||
[ -z "$file" ] && echo 'ex <compressed>' && return 1
|
||||
[ ! -f "$file" ] && echo 'Invalid file: `'"$file"'`' && return 1
|
||||
case "$file" in
|
||||
*.tar.bz2) tar xjf "$file" ;;
|
||||
*.tar.gz) tar xzf "$file" ;;
|
||||
*.bz2) bunzip2 "$file" ;;
|
||||
*.rar) unrar x "$file" ;;
|
||||
*.gz) gunzip "$file" ;;
|
||||
*.tar) tar xf "$file" ;;
|
||||
*.tbz2) tar xjf "$file" ;;
|
||||
*.tgz) tar xzf "$file" ;;
|
||||
*.zip) unzip "$file" ;;
|
||||
*.Z) uncompress "$file" ;;
|
||||
*.7z) 7z x "$file" ;;
|
||||
*.xz) unxz "$file" ;;
|
||||
*)
|
||||
echo 'Unknown suffix on file: `'"$file"'`'
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
ex "$@"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
git switch master 2>/dev/null || git switch main
|
||||
Loading…
Add table
Add a link
Reference in a new issue