mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
Remove broken mcd function
(ohmyzsh supplies "take" which does exactly what i want)
This commit is contained in:
@@ -14,23 +14,6 @@ in {
|
|||||||
|
|
||||||
environment.interactiveShellInit = "export PATH=$PATH:$HOME/.local/bin";
|
environment.interactiveShellInit = "export PATH=$PATH:$HOME/.local/bin";
|
||||||
|
|
||||||
environment.extraInit = ''
|
|
||||||
function mcd {
|
|
||||||
newdir='_mcd_command_failed_'
|
|
||||||
if [ -d "$1" ]; then
|
|
||||||
echo "$1 already exists."
|
|
||||||
newdir="$1"
|
|
||||||
else
|
|
||||||
if [ -n "$2" ]; then
|
|
||||||
command mkdir -p -m $1 "$2" && newdir="$2"
|
|
||||||
else
|
|
||||||
command mkdir -p "$1" && newdir="$1"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
cd "$newdir"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user