Skip to content

uehara-mech/iterm_status_cuda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

iterm2-CUDA-VERSION

A custom component to display CUDA Version information in the status bar of iTerm2

image

How to use

Install Python Runtime

You need to install Python Runtime at first. You can install it by clicking Scripts > Manage > Install Python Runtime.

Auto-run scripts

Move get_cuda_info.py to $HOME/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch

Configure .zshrc

Next, you need to add following lines to .zsrhc or .bashrc.

function cuda_ver() {
    nvcc -V 2>/dev/null | sed -nr "s/^(.*release)(\s*)(.*)(\,)(.+)$/\3/p"
}

function iterm2_print_user_vars() {
   iterm2_set_user_var cuda_ver $(cuda_ver)
}

After restarting iTerm2, you can choose the cuda version component in preferences: Preferences > Profiles > Session > Status bar enabled > Configure Status Bar.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages