add videos
22
.bashrc
|
|
@ -1,22 +0,0 @@
|
||||||
|
|
||||||
bldgrn='\e[1;32m'
|
|
||||||
txtrst='\e[0m'
|
|
||||||
|
|
||||||
print_before_the_prompt() {
|
|
||||||
printf "$bldgrn%s\n$txtrst" "$PWD"
|
|
||||||
}
|
|
||||||
|
|
||||||
PROMPT_COMMAND=print_before_the_prompt
|
|
||||||
PS1="${VIRTUAL_ENV_PROMPT}-> "
|
|
||||||
|
|
||||||
PATH="/c/Program Files/Python/Python314:$PATH"
|
|
||||||
|
|
||||||
CP=$(which python)
|
|
||||||
echo ""
|
|
||||||
echo "Shell: $0"
|
|
||||||
echo "Current Python: $CP"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
shopt -s autocd
|
|
||||||
|
|
||||||
alias la="ls -lahF"
|
|
||||||
|
Before Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 567 KiB |
|
Before Width: | Height: | Size: 597 KiB |
|
Before Width: | Height: | Size: 529 KiB |
|
Before Width: | Height: | Size: 59 KiB |
6
profiles_for_macos/.zprofile
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
## Default Python
|
||||||
|
# Comment out all but the one version of Python you want to use:
|
||||||
|
# PATH="/Library/Frameworks/Python.framework/Versions/3.12/bin:${PATH}"
|
||||||
|
PATH="/Library/Frameworks/Python.framework/Versions/3.13/bin:${PATH}"
|
||||||
|
# PATH="/Library/Frameworks/Python.framework/Versions/3.14/bin:${PATH}"
|
||||||
|
export PATH
|
||||||
31
profiles_for_macos/.zshrc
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
## Shows you the current Python and the shell you are using
|
||||||
|
echo "Current Python: $(which python3)"
|
||||||
|
echo "Shell: $0"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
# Set the Default Prompt
|
||||||
|
if [ -n "${VIRTUAL_ENV_PROMPT}" ]; then
|
||||||
|
PS1='(venv) %(?.√.X) %B%F{green}%d%f%b
|
||||||
|
$ '
|
||||||
|
else
|
||||||
|
PS1='%(?.√.X) %B%F{green}%d%f%b
|
||||||
|
$ '
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Aliases
|
||||||
|
# With the alias that follows, you can type `la` to get a nicely formatted
|
||||||
|
# listing of the contents of the current directory.
|
||||||
|
alias la="ls -lahF"
|
||||||
|
|
||||||
|
# Set set autocd and spell checking for zsh
|
||||||
|
setopt autocd
|
||||||
|
setopt correct
|
||||||
|
|
||||||
|
# The first part of this line autoloads a function called
|
||||||
|
# "compinit". The second part runs the function.
|
||||||
|
# It provides autocompletion for git commands.
|
||||||
|
autoload -U compinit && compinit
|
||||||
|
|
||||||
|
# Used by uv
|
||||||
|
. "$HOME/.local/bin/env"
|
||||||
22
profiles_for_windows/.bashrc
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
## Tell you the current Python and what shell you are using
|
||||||
|
CP=$(which python)
|
||||||
|
echo ""
|
||||||
|
echo "Current Python: $CP"
|
||||||
|
echo "Shell: $0"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
# Set the prompt
|
||||||
|
bldgrn='\e[1;32m'
|
||||||
|
txtrst='\e[0m'
|
||||||
|
print_before_the_prompt() {
|
||||||
|
printf "$bldgrn%s\n$txtrst" "$PWD"
|
||||||
|
}
|
||||||
|
PROMPT_COMMAND=print_before_the_prompt
|
||||||
|
PS1="${VIRTUAL_ENV_PROMPT}-> "
|
||||||
|
|
||||||
|
## No need to enter cd when you want to change to a new directory
|
||||||
|
shopt -s autocd
|
||||||
|
|
||||||
|
# With the alias that follows, you can type `la` to get a nicely formatted
|
||||||
|
# listing of the contents of the current directory.
|
||||||
|
alias la="ls -lahF"
|
||||||
21
videos_on_macos_installs/README.md
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
# Videos about macOS installs
|
||||||
|
|
||||||
|
To share code with others, you need to be able to follow instructions exactly.
|
||||||
|
|
||||||
|
On macOS, you should be using one of the two most recent versions, either Sequoia or Tahoe.
|
||||||
|
|
||||||
|
To do serious empirical research on macOS, you will need to have access to:
|
||||||
|
|
||||||
|
1. A text editor
|
||||||
|
2. A recent version of Python and and a package manager
|
||||||
|
3. Git
|
||||||
|
|
||||||
|
You will also need to be able to use the current default macOS terminal, which runs a shell program called zsh.
|
||||||
|
|
||||||
|
When you open a terminal window, if you get a message that says you need to update to zsh, follow the instuctions and do this update.
|
||||||
|
|
||||||
|
The videos in this folder show you how to install the most recent version of Python3.13, and a new packager manager called, uv. I also show you how to install a promising new text editor called Zed. If you would rather use Visual Studio Code, that is a reasonable choice for now, but be aware that it is already on the path to enshitification.
|
||||||
|
|
||||||
|
The programs other than Git have familiar installers that you can download and run. Notice that the installer for Python will open a window at the end that has some files with names that end with ".command". As the video shows, you should double click on them to run them.
|
||||||
|
|
||||||
|
The best way to install Git on macOS is to install a larger package that is known as "XCode Tools." To do this, you enter a command in the terminal as shown in the video: "xcode-select --install". If you do not already have XCode Tools installed, it will take some time for all of them to be installed. To speed things up, it is best to run this command when you have a high-bandwidth internet connection.
|
||||||
BIN
videos_on_macos_installs/python313.mp4
Normal file
BIN
videos_on_macos_installs/uv_macos.mp4
Normal file
BIN
videos_on_macos_installs/xcode-select.mp4
Normal file
BIN
videos_on_macos_installs/zed_macos.mp4
Normal file
47
videos_on_windows_installs/README.md
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
# Videos about Windows installs
|
||||||
|
|
||||||
|
To share code with others, you need to be able to follow instructions exactly.
|
||||||
|
|
||||||
|
On Windows, you need to be running version 11. Version 10 is no longer getting security updates.
|
||||||
|
|
||||||
|
To be able to work with the tools I'll provide, you also need to be able to use:
|
||||||
|
|
||||||
|
1. A text editor
|
||||||
|
2. A specific version of Python (we'll use the most recent version of Python 3.13) and and a package manager (I suggest trying uv.)
|
||||||
|
3. Git
|
||||||
|
4. Two shell programs:
|
||||||
|
- Powershell
|
||||||
|
- Git Bash
|
||||||
|
|
||||||
|
The videos in this folder show you how to install one free text editor (Notepad++) that Git can use; Python3.13; Git for Windows (which includes Git Bash); PowerShell 7; and a popular new package manager called, uv. I also show how to install a new text editor that is under developement called Zed that you may want to try. (It is safer to use the much older Notepad++ for the narrow purpose of being an editor for Git commit and merge messages.)
|
||||||
|
|
||||||
|
If instead of trying Zed for most of your text editing you would rather use Visual Studio Code, that is a reasonable choice for now, but be aware that it is already on the path to enshitification.
|
||||||
|
|
||||||
|
**Pay attention to the specifics.**
|
||||||
|
|
||||||
|
a. Microsoft offers two different programs with very similar names: Windows PowerShell and PowerShell. Windows PowerShell is installed by default as part of Windows. The instructions that follow refer to PowerShell version 7. It does not come with Windows. It has to be installed separately.
|
||||||
|
|
||||||
|
b. The version of Python matters. The instructions I'll provide will work with Python 3.13 but not with Python 3.14.
|
||||||
|
|
||||||
|
|
||||||
|
**The order in which you do these installs also matters.**
|
||||||
|
|
||||||
|
a. You need to install Notepad++ before you install Git for Windows.
|
||||||
|
b. You need to install PowerShell 7 before you install uv (at least if you use the method that I suggest. There are others.)
|
||||||
|
|
||||||
|
|
||||||
|
**Other Potential Confusions**
|
||||||
|
|
||||||
|
i) During the installation process, you will sometimes need to click through a confirmation screen where Windows asks if it is ok to do the install. This is not something that the videos can capture.
|
||||||
|
|
||||||
|
ii) You may not get the same defaults for checked boxes and filled in forms in the installer for Git for Windows. Whatever you see as initial defaults, be sure to check the boxes and fill in the forms as in the video.
|
||||||
|
|
||||||
|
iii) The options you see in the videos for installing Python, and Powershell may not be available to you if you already have a version of the underlying program installed.
|
||||||
|
|
||||||
|
- If you do have a version installed, you may be presented with different screens that give you the option to upgrade or repair the existing install and the option to uninstall.
|
||||||
|
|
||||||
|
- The safest way to proceed is to uninstall and then run the installer again so you can specify the exact options in the videos.
|
||||||
|
|
||||||
|
- If you try to do something else, such as upgrade or repair, you might fail to specify exactly the same selections as in the videos. If so, other things may break. If they do; go back; uninstall; follow the install videos exactly.
|
||||||
|
|
||||||
|
- If you think that you can disregard the instructions offered here and just improvise, go for it, but understand that you are on your own.
|
||||||