Useful scripts for unix like systems mostly for developers
with wget:
wget -q -O- "https://majk1.github.io/shellrc/installer.sh" | bash -s -- -u
with curl:
curl -L -s -o- "https://majk1.github.io/shellrc/installer.sh" | bash -s -- -u
for silent install use -su parameter instad of -u
just type:
update-shellrc
with wget:
wget -q -O- "https://majk1.github.io/shellrc/installer.sh" | bash -s -- -a
with curl:
curl -L -s -o- "https://majk1.github.io/shellrc/installer.sh" | bash -s -- -a
git clone https://github.com/majk1/shellrc.git
source ~/scripts/shellrc.sh
-
1.7.27
FZF ALT_C and COMPLETION_TRIGGER has been added
zsh addedcomplete aliases
ffmpeg-to-stereo
: improved imporved.vimrc
and addedconfig.nvim
intorc
files (link this directory to~/.config/nvim
) -
1.7.26
python3 version forurlencode
,urldecode
,millis
andnanos
ffmpeg-to-stereo
: added metadata support and additional parameters
java: Added version 16 and 18, changed default to version 17
darwin: Addedpsgrep
, and initial version ofreminders
-
1.7.25
Added macos battery logger script
Added macosfree
command replacement (memory status)
Added homebrew specific bash completion
Added more JDK pattern to find appropriate version Added auto-clone forz
Added Viscosity VPN control command line functions
Removed directory restriction for jdk path to enable the use of symlinks
zsh source order fix and other completion fixes -
1.7.24
addeduibuilder
function to generate UIBuilder project
ffmpeg utils stereo downmix fix
addedmkvMergeSub
--no-conv
parameter to skip subtitle UTF-8 conversion
removed jdk 10 and 12 alias, added jdk 17 -
1.7.23
fixedinstaller.sh
added lastX aliases -
1.7.22
added GraalVM 21
added zsh command line syntax highlighting -
1.7.21
added fzf loading and default env variables -
1.7.20
fixedmvn
code completion indirect variable expansion shell incompatibility (bash supported${!var}
has been replaced to use eval instead of zsh supported${(P)var}
)
addedmvn
javadoc and source skip completion -
1.7.19
zsh bindkey for bash style backward kill word forctrl+e
zsh added-u
to compinit to ignore insecure directories (SHOULD BE FIXED INSTEAD)
addedairport
alias for macos
brew
completion cache is disabled for other shell than bash
pip
completion fix -
1.7.18
fix for java8 selection alias (graalvm was selected if it was present, instead of openjdk)
history size has been set to unlimited for all shells
bash-completion formvn
fix to be able to use in zsh as well -
1.7.17
brew completion fix -
1.7.16
addedij-config-hide-py-scientific-toolwindow
function to hide py scientific toolwindow
addedbrew
bash completion cache (this makes the first command completion a lot faster)
addedto-monospace
command, which is a script that creates a monospaced RTF version of the input parameter
added GraalVM support (alias and home)
addedjava_list
alias to list currently installed JVMs -
1.7.15
addedgit-merge-master
function which will fetch with-p
and rungit merge origin/master
added--no-sub
option to theffmpeg-to-stereo
addedadoptopenjdk
support to the java version switcher -
1.7.14
addedmvn
bash completion
addedffmpeg-utils
bash completion (ffmpeg-info
ffmpeg-to-stereo
mkvMergeSub
)
to-stereo
renamed toffmpeg-utils
and addedffmpeg-info
function
added bash completion source directoryusr/local/etc/bash_completion
commented out defaultMAVEN_OPTS
, use project specific.mvn/jvm.config
and.mvn/maven.config
instead -
1.7.13
dupli.py
shebang python version fix (python3)
installer.sh
bugfix #8
rc/inputrc
now includes key binding to support alt+left/right in IntelliJ IDEA on mac os -
1.7.12
bugfix #8 - cannot update bug - version number > 9
added default env fordocker-env
and--clear
attribute to remove env vars -
1.7.11
added java (jdk) 11 support
renamedmvn_gen_pom
tomvn-gen-pom
-
1.7.10
fixedcurrency-exchange
source URL changed to HTTPS only
addedffmpeg-to-stereo
function to generate dolby stereo video files from 5.1 or 7.1 channel, producing higher volume during speak and lower volume during action and music
addedmvn_gen_pom
function to generate maven pom.xml template -
1.7.9
addeddupli.py
as alias fordupli
(script to find and list duplicate files)
addedto_stereo.sh
alternative ffmpeg parameteres (still in comment, not a real util)
added backward-kill-word as ctrl+e -
1.7.8
fixed java_home for 9 and 10, default java is now java 10 -
1.7.7
aliastoUTF8
has been removed
addedgit-pull
function in git.sh
functionwildfly-pid
has been optimized (implementation with awk)
addedformat-number
command to format numbers to humand readable form (and added intocurrency-exchange
)
addednetinfo
(macos only) command to query system network interface informations
addedunicode
command to (download the list and) search for unicode symbol by keywords given as argumemts:
^- example:unicode black circle
commandmvn-search version
now supports combined parameter by version request and for also for flags, like:mvn-search -1 v org.projectlombok:lombok
ormvn-search -n1 s lombok
-
1.7.6
addedmvn-search
util script
renamed mvnCleaner to mvn-cleaner -
1.7.5
addeddus
function into core.sh (sorted du: du -sh "$@" | sort -h)
addedhr
function into core.sh (prints a horizontal separator line)
addedcurrency-exchange
util script -
1.7.4
addedpip
command bash completion
added and linked ipv6-utils.sh with functions:ipv6_mac_to_ipv6
andipv6_ipv6_to_mac
addedset-session-title
andunset-session-titel
functions to set/unsetSESSION_TITLE
env var - prefix for terminal title
addeddocker-storage-usage
function for mac os docker replacesdocker-qcow2-usage
addeddocker-stats
function which runsdocker stats
with formatting where container name is also included
addedrun-in
function in core, usage:run-in [-v] <directory> <all other arguments are the command to run with arguments>
-
1.7.3
gifenc
andto-stereo.sh
drafts
netsh interface portproxy
aliasnetsh-portproxy
on cygwin
shellrc.sh
- force en_US.UTF-8 - LANG and LC_ALL env vars-
core:
create-openssl-key-and-cert
function added to core.sh (run without params for usage)
create-openssl-dh
function added to core.sh (run without params for usage) -
darwin:
dns-flush-cache
function added to flush dns cache
appBundleId
function has been renamed toapp-bundle-id
-
docker:
docker-registry-mark-for-delete
function added
-
-
1.7.2
commented out the line to source .profile in shellrc, causing an infinite loop -
1.7.1
wildfly-pid
fixed + also prints standalone
grephash
andgrephashempty
alias fix
custom bash-completion removed in cygwin
addedmillis
() function to get current time in milliseconds
addednanos
() function to get current time in nanoseconds
addedbackup
() function to create a backup of a file in format: {original_file_name.original_file_ext.bck-YYYYMMDDHHmmss} -
1.7
wildfly-pid
"ps a" replaced to "ps ax"
added conditionalcolorcat
alias (if source-highlight command present)
jcmd
bash completion added
added bashcompinit to zsh -
1.6.3
idea
command removed (can be created in IntelliJIDEA menu -> Tools -> Create Command-line Launcher)
wildfly-pid
function added to java.sh -
1.6.2
mvnCleaner - count + fixes -
1.6.1
Added mvnCleaner -
1.6
Moved to github -
1.5.1
Added oneliner-1
argument forjmeminfo
-
1.5
Addedjmeminfo
utility script to get the jvm memory usage -
1.4
Addedimgcat
andimgls
utility script for iTerm2
Addedjvisualvm-jboss
function to easy start jvisualvm with the right classpath and module path for jboss/wildfly
df
alias fixed for apfs (macOS) -
1.3
Java 9 support PATH support Java 8 installer renamed to install-oracle-jdk-8.sh MaxPermSize removed from the jdk installer, added MaxMetaspaceSize
toUTF8 alias added (iconv iso8859-2 to utf-8)