-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile
More file actions
106 lines (88 loc) · 3.22 KB
/
profile
File metadata and controls
106 lines (88 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
case $OSTYPE in darwin*) alias vim='nvim'; echo ">^.^<" ;; esac
alias cl='clear'
alias mv='mv -i'
alias ll='ls -FGlAhp'
alias tree='tree -I "*node_modules*"'
alias path='echo -e ${PATH//:/\\n}'
alias mkdir='mkdir -p'
alias sed='gsed'
alias whatismyip='ipconfig getifaddr en0'
alias ip='ipconfig getifaddr en0'
alias f='open -a Finder ./'
alias shebang='echo "#!/usr/bin/env bash"'
alias nl='npm list --depth 0'
alias nlg='nl -g'
alias tr='tree'
alias cat='bat'
alias cc='claude'
alias oc='opencode'
alias s='git status'
alias gs='git status'
alias gd='git diff'
alias gds='git diff --staged'
alias b='git branch'
alias gb='git branch'
alias gt='git tree'
alias ga='git add'
alias gc='git checkout'
alias gco='git checkout'
alias gcd='git checkout develop'
alias gcm='git commit -m'
alias gp='git pull'
alias gl='git log --oneline --graph --decorate --all'
alias gr='git for-each-ref --format="%(refname:short)"' # "refs/heads/feature/*"
alias grh='git for-each-ref --format="%(refname:short)" refs/heads/'
alias grc='git for-each-ref --sort=committerdate refs/heads/ --format="%(committerdate:short) %(refname:short)"'
alias gcp='git cherry-pick'
alias linecount_js='git ls-files | grep "\.js" | xargs wc -l'
alias linecount_ts='git ls-files | grep "\.ts" | xargs wc -l'
alias wm='workmux'
alias wmd='workmux dashboard'
alias wma='workmux add'
alias ch='claude-history'
# Find and replace text across all git-tracked files
# Usage: replace <from> <to> [path] (path defaults to current directory)
replace() {
local from="$1"
local to="$2"
local root="${3:-.}"
if [[ -z "$from" || -z "$to" ]]; then
echo "usage: replace <from> <to> [path]" >&2
return 1
fi
escape_sed() {
printf '%s' "$1" | gsed 's/[.[\*^$\/&]/\\&/g'
}
local from_escaped
from_escaped="$(escape_sed "$from")"
git -C "$root" ls-files -z \
| while IFS= read -r -d '' file; do
local full_path="$root/$file"
[[ -f "$full_path" && ! -L "$full_path" ]] || continue
gsed -i "s/${from_escaped}/${to}/g" "$full_path"
done
}
alias cdk='npx aws-cdk'
alias startd6='~/deep6/application-team-scripts/frankenscript/frankenscript.sh'
export PATH="$PATH:/Users/tim/scripts"
export CLICOLOR=1
export EDITOR=nvim
export TZ='America/Los_Angeles'
export BAT_THEME='Sublime Snazzy'
# Setting for the new UTF-8 terminal support in Lion
export LC_CTYPE=en_US.UTF-8
#export LC_ALL=en_US.UTF-8
alias cd..='cd ../' # Go back 1 directory level (for fast typers)
alias ..='cd ../' # Go back 1 directory level
alias ...='cd ../../' # Go back 2 directory levels
alias .3='cd ../../../' # Go back 3 directory levels
alias .4='cd ../../../../' # Go back 4 directory levels
alias .5='cd ../../../../../' # Go back 5 directory levels
alias .6='cd ../../../../../../' # Go back 6 directory levels
mcd () { mkdir -p "$1" && cd "$1"; } # mcd: Makes new Dir and jumps inside
trash () { command mv "$@" ~/.Trash ; } # trash: Moves a file to the MacOS trash
ql () { qlmanage -p "$*" >& /dev/null; } # ql: Opens any file in MacOS Quicklook Preview
# http://natelandau.com/my-mac-osx-bash_profile/
export PIPENV_VENV_IN_PROJECT=1
. "$HOME/.rye/env"
. "$HOME/.cargo/env"