Useful scripts for unix like systems mostly for developers
with wget:
wget -q -O- "https://majk1.github.io/shellrc/installer.sh" | bash -s -- -uwith curl:
curl -L -s -o- "https://majk1.github.io/shellrc/installer.sh" | bash -s -- -ufor silent install use -su parameter instad of -u
just type:
update-shellrcwith wget:
wget -q -O- "https://majk1.github.io/shellrc/installer.sh" | bash -s -- -awith curl:
curl -L -s -o- "https://majk1.github.io/shellrc/installer.sh" | bash -s -- -agit clone https://github.com/majk1/shellrc.gitsource ~/scripts/shellrc.sh-
1.7.27
FZF ALT_C and COMPLETION_TRIGGER has been added
zsh addedcomplete aliases
ffmpeg-to-stereo: improved imporved.vimrcand addedconfig.nvimintorcfiles (link this directory to~/.config/nvim) -
1.7.26
python3 version forurlencode,urldecode,millisandnanos
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 macosfreecommand 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
addeduibuilderfunction to generate UIBuilder project
ffmpeg utils stereo downmix fix
addedmkvMergeSub--no-convparameter 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
fixedmvncode completion indirect variable expansion shell incompatibility (bash supported${!var}has been replaced to use eval instead of zsh supported${(P)var})
addedmvnjavadoc and source skip completion -
1.7.19
zsh bindkey for bash style backward kill word forctrl+e
zsh added-uto compinit to ignore insecure directories (SHOULD BE FIXED INSTEAD)
addedairportalias for macos
brewcompletion cache is disabled for other shell than bash
pipcompletion 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 formvnfix to be able to use in zsh as well -
1.7.17
brew completion fix -
1.7.16
addedij-config-hide-py-scientific-toolwindowfunction to hide py scientific toolwindow
addedbrewbash completion cache (this makes the first command completion a lot faster)
addedto-monospacecommand, which is a script that creates a monospaced RTF version of the input parameter
added GraalVM support (alias and home)
addedjava_listalias to list currently installed JVMs -
1.7.15
addedgit-merge-masterfunction which will fetch with-pand rungit merge origin/master
added--no-suboption to theffmpeg-to-stereo
addedadoptopenjdksupport to the java version switcher -
1.7.14
addedmvnbash completion
addedffmpeg-utilsbash completion (ffmpeg-infoffmpeg-to-stereomkvMergeSub)
to-stereorenamed toffmpeg-utilsand addedffmpeg-infofunction
added bash completion source directoryusr/local/etc/bash_completion
commented out defaultMAVEN_OPTS, use project specific.mvn/jvm.configand.mvn/maven.configinstead -
1.7.13
dupli.pyshebang python version fix (python3)
installer.shbugfix #8
rc/inputrcnow 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-envand--clearattribute to remove env vars -
1.7.11
added java (jdk) 11 support
renamedmvn_gen_pomtomvn-gen-pom -
1.7.10
fixedcurrency-exchangesource URL changed to HTTPS only
addedffmpeg-to-stereofunction 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_pomfunction to generate maven pom.xml template -
1.7.9
addeddupli.pyas alias fordupli(script to find and list duplicate files)
addedto_stereo.shalternative 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
aliastoUTF8has been removed
addedgit-pullfunction in git.sh
functionwildfly-pidhas been optimized (implementation with awk)
addedformat-numbercommand to format numbers to humand readable form (and added intocurrency-exchange)
addednetinfo(macos only) command to query system network interface informations
addedunicodecommand to (download the list and) search for unicode symbol by keywords given as argumemts:
^- example:unicode black circle
commandmvn-search versionnow supports combined parameter by version request and for also for flags, like:mvn-search -1 v org.projectlombok:lombokormvn-search -n1 s lombok -
1.7.6
addedmvn-searchutil script
renamed mvnCleaner to mvn-cleaner -
1.7.5
addeddusfunction into core.sh (sorted du: du -sh "$@" | sort -h)
addedhrfunction into core.sh (prints a horizontal separator line)
addedcurrency-exchangeutil script -
1.7.4
addedpipcommand bash completion
added and linked ipv6-utils.sh with functions:ipv6_mac_to_ipv6andipv6_ipv6_to_mac
addedset-session-titleandunset-session-titelfunctions to set/unsetSESSION_TITLEenv var - prefix for terminal title
addeddocker-storage-usagefunction for mac os docker replacesdocker-qcow2-usage
addeddocker-statsfunction which runsdocker statswith formatting where container name is also included
addedrun-infunction in core, usage:run-in [-v] <directory> <all other arguments are the command to run with arguments> -
1.7.3
gifencandto-stereo.shdrafts
netsh interface portproxyaliasnetsh-portproxyon cygwin
shellrc.sh- force en_US.UTF-8 - LANG and LC_ALL env vars-
core:
create-openssl-key-and-certfunction added to core.sh (run without params for usage)
create-openssl-dhfunction added to core.sh (run without params for usage) -
darwin:
dns-flush-cachefunction added to flush dns cache
appBundleIdfunction has been renamed toapp-bundle-id -
docker:
docker-registry-mark-for-deletefunction added
-
-
1.7.2
commented out the line to source .profile in shellrc, causing an infinite loop -
1.7.1
wildfly-pidfixed + also prints standalone
grephashandgrephashemptyalias 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 conditionalcolorcatalias (if source-highlight command present)
jcmdbash completion added
added bashcompinit to zsh -
1.6.3
ideacommand removed (can be created in IntelliJIDEA menu -> Tools -> Create Command-line Launcher)
wildfly-pidfunction 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-1argument forjmeminfo -
1.5
Addedjmeminfoutility script to get the jvm memory usage -
1.4
Addedimgcatandimglsutility script for iTerm2
Addedjvisualvm-jbossfunction to easy start jvisualvm with the right classpath and module path for jboss/wildfly
dfalias 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)