Proteusiq / dotfiles

🦊 Waiting for the World to Change One Bytes
MIT License
1 stars 0 forks source link

My Linux Shortcuts #2

Closed Proteusiq closed 5 months ago

Proteusiq commented 5 months ago
alias blackit='pyenv shell dev && black .'
alias ruffit='pyenv shell dev && ruff .'
alias jupyterit='pyenv shell jupyter && nohup jupyter lab --allow-root > /tmp/lab.log 2>&1 &'
alias jupyterkill='kill -9 $(ps -ef| grep jupyter-lab | head -n 1 | awk "{print \$2;}") & rm /tmp/lab.log'

alias ls=logo-ls

# - clone and cd
function git() {
  if [ $1 = "clone" ]; then
    command git $@ && cd "$(basename "$_" .git)"
  else
    command git $@
  fi
}
Proteusiq commented 5 months ago
alias blackit='pyenv shell dev && black .'
alias ruffit='pyenv shell dev && ruff .'
alias jupyterit='pyenv shell jupyter && nohup jupyter lab --allow-root > /tmp/lab.log 2>&1 &'
alias jupyterkill='kill -9 $(ps -ef| grep jupyter-lab | head -n 1 | awk "{print \$2;}") & rm /tmp/lab.log'

alias ls=logo-ls

# - clone and cd
function git() {
  if [ $1 = "clone" ]; then
    command git $@ && cd "$(basename "$_" .git)"
  else
    command git $@
  fi
}

skipping blackit and ruffit and I love eza minus missing logos 😃