Last active
June 22, 2022 17:35
-
-
Save RFullum/09d3123568abf2e08a47ad8c203f05a3 to your computer and use it in GitHub Desktop.
.zshrc
This file contains 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
#Simultaneously create and switch to new directory | |
function mkcd () { mkdir -p "$@" && cd "$@"; } | |
#Repleace spaces in filenames in a directory with an underscore | |
function repspace () { find . -type f -name "* *" -exec bash -c 'mv "$0" "${0// /_}"' {} ";" ; } | |
#Prompt | |
PS1="%F{cyan}%n:%1~$%f " | |
autoload -Uz compinit && compinit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment