added individual py-env into .zshrc-mac

This commit is contained in:
crunchie
2025-05-06 18:39:26 +02:00
parent f4ef4ce5ae
commit cfbc1299bd
2 changed files with 8 additions and 7 deletions

View File

@@ -114,6 +114,7 @@ fi
#autoload -Uz compinit #autoload -Uz compinit
#compinit #compinit
source $HOME/.zshrc-theme source $HOME/.zshrc-theme
source $HOME/py_ansible/bin/activate
HISTSIZE=1000 HISTSIZE=1000
HISTFILESIZE=2000 HISTFILESIZE=2000
export EDITOR=vim export EDITOR=vim

View File

@@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
## Author: crunchie ## Author: crunchie
## Description: Script to automatically link up certain files in home-directory to pre-built versions. ## Description: Script to automatically link up certain files in home-directory to pre-built versions.
## Backups of currently installed versions are made in a .dtbak-file. ## Backups of currently installed versions are made in a .dtbak-file.
## Links the .zshrc, .zshrc-theme and .aliases file to different files depending on whether a linux or mac platform is in use. ## Links the .zshrc, .zshrc-theme and .aliases file to different files depending on whether a linux or mac platform is in use.
## install routine checks whether .oh-my-zsh exists in users home-folder - and install .oh-my-zsh unattended if not. ## install routine checks whether .oh-my-zsh exists in users home-folder - and install .oh-my-zsh unattended if not.
## if .oh-my-zsh is installed the version will be updated to the current version. ## if .oh-my-zsh is installed the version will be updated to the current version.
# function to check if mac or linux # function to check if mac or linux
check_os () { check_os () {
@@ -40,7 +40,7 @@ check_exist () {
fi fi
} }
# function to check whether .oh-my-zsh is installed. # function to check whether .oh-my-zsh is installed.
# installation is checked by looking if ~/.oh-my-zsh exists. # installation is checked by looking if ~/.oh-my-zsh exists.
check_oh-my-zsh () { check_oh-my-zsh () {
if [ -d ~/.oh-my-zsh ]; then if [ -d ~/.oh-my-zsh ]; then
@@ -60,7 +60,7 @@ check_oh-my-zsh
inst=$? inst=$?
if [ $inst == 3 ]; then if [ $inst == 3 ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
else else
git -C ~/.oh-my-zsh/ pull git -C ~/.oh-my-zsh/ pull
fi fi
@@ -83,7 +83,7 @@ do
if [ $? == 2 ]; then if [ $? == 2 ]; then
unlink_mv_file ~/$file unlink_mv_file ~/$file
fi fi
done done
# link the .zshrc-file in home-directory depending on the underlying os # link the .zshrc-file in home-directory depending on the underlying os
if [ $os == linux ];then if [ $os == linux ];then