Last active
June 6, 2021 06:13
-
-
Save j5ndev/855655d87d6a066f44b73c93ca34f652 to your computer and use it in GitHub Desktop.
Entries in my .zshrc that persist through an upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Dell Command Configure Toolkit (cctk) | |
| # Install: https://www.dell.com/support/kbdoc/en-us/000178000/dell-command-configure | |
| # Reference: https://www.dell.com/support/manuals/en-us/command-configure/dellcommandconfigure_rg/-thermalmanagement?guid=guid-7605768c-2051-4f32-9ec9-94201b95b8ac&lang=en-us | |
| alias cctk="sudo /opt/dell/dcc/cctk" | |
| alias thermal-quiet="cctk --ThermalManagement=Quiet" | |
| alias thermal-optimized="cctk --ThermalManagement=Optimized" | |
| alias thermal-performance="cctk --ThermalManagement=UltraPerformance" | |
| alias thermal-status="cctk --ThermalManagement" | |
| # man xclip: https://linux.die.net/man/1/xclip | |
| # Aliases for copy/paste to/from the clipboard | |
| alias pbcopy='xclip -selection clipboard' | |
| alias pbpaste='xclip -selection clipboard -o' | |
| # Install gittk: https://github.com/j5ndev/gittk | |
| # Standardize git clone of repositories | |
| clone(){ | |
| eval "$(/usr/local/bin/gittk -bash clone $@)" | |
| } | |
| # man at: https://linux.die.net/man/1/at | |
| # Copy master password for 1password and clear clipboard after 2 minutes | |
| MP_PATH='<path-to-file>' # chmod 660 | |
| alias cpmp="sudo cat ${MP_PATH} | pbcopy && echo -n 'echo -n | DISPLAY=:0 xclip -selection clipboard && notify-send Clipboard Cleared' | at now + 2 minute && exit" | |
| # man tmux: https://linux.die.net/man/1/tmux | |
| if [ -z "$TMUX" ]; then | |
| exec tmux | |
| fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment