Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWolf-01 committed Jul 16, 2024
1 parent 95d0f8b commit 3753f84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion zsh/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ fi
# git #
#######
alias g='git'
alias gc='git commit'
alias gp='git push'
alias gst='git status'

alias gspp="git stash && git pull && git stash pop"
alias gacp="git add . && git commit -m 'update' && git push"
alias ggraph='git log --graph --abbrev-commit --date=relative --pretty=format:"%C(auto)%h %s%n %C(yellow)by %C(blue)%an %C(magenta)<%ae> [%G?] %C(green)%ad%n %C(auto)%d%n"'
alias gdiff='git diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r' # Remove `+` and `-` from start of diff lines; just rely upon color.

Expand Down
1 change: 1 addition & 0 deletions zsh/exports
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export PATH=~/bin:${PATH}
export PATH=~/minconda/bin:${PATH}
export PATH=~/.local/bin:${PATH}
export PATH=~/.dotfiles/secrets/bin:${PATH}
export PATH=/usr/local/bin:${PATH}
export PYTHONPATH="$PYTHONPATH:$(pwd)" # useful for running scripts from the root of the repo (when opening shell in pycharm for example)

# Make Python use UTF-8 encoding for output to stdin, stdout, and stderr. (Redundant as of Python 3?)
Expand Down
2 changes: 1 addition & 1 deletion zsh/functions
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function gz() {
# `less` with options to preserve color and line numbers, unless the output is
# small enough for one screen.
function tre() {
tree -aC -I '.git|node_modules|bower_components|__pycache__' --dirsfirst "$@" | less -FRNX
tree -aC -I '.git|node_modules|bower_components|__pycache__|.next|.idea|.vscode' --dirsfirst "$@" | less -FRNX
}
# TODO, needs fixing: https://github.com/conda/conda/issues/7980
## Disallow installing packages in base environment https://stackoverflow.com/a/69617319/17777085
Expand Down

0 comments on commit 3753f84

Please sign in to comment.