-
Notifications
You must be signed in to change notification settings - Fork 0
Cheatsheet MacOS
Agustí Sánchez edited this page Dec 23, 2023
·
13 revisions
???
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#Java
- JVM dir:
/Library/Java/JavaVirtualMachines
- Java Applet Plugin dir:
/Library/Internet\ Plug-Ins
- Tools: jenv, /usr/libexec/java_home -V
Install Inetutils (telnet, ftp, ...) from sources.
- Download from
http://ftp.gnu.org/gnu/inetutils/
- Configure:
./configure
- Build:
make
- Install:
sudo make install
Copy file contents to clipboard:
pbcopy < file.txt
pbpaste
File: .vimrc
Content:
colo darkblue
syntax on
set tabstop=3 expandtab
set ai
[user]
email = xxxx
name = yyyy
[core]
excludesfile = ../_RESOURCES/global-gitignore.txt
autocrlf = input
editor = vim
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[color]
branch = auto
diff = auto
status = auto
[pager]
branch = false
[alias]
s = status -s
pullm = pull origin master
pushm = push origin master
pulld = pull origin develop
pushd = push origin develop
a = !git add . && git status
aa = !git add . && git add -u . && git status
ac = !git add . && git commit
acm = !git add . && git commit -m
au = !git add -u . && git status
c = commit
ca = commit --amend
cm = commit -m
d = diff
l = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
lg = log --oneline --decorate --graph --all
ll = log --stat --abbrev-commit
llg = log --color --graph --pretty=format:'%C(bold white)%H %d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' --abbrev-commit
master = checkout master
spull = svn rebase
spush = svn dcommit
[push]
default = current
[includeIf "gitdir:/Users/sabart/....."]
path = .gitconfig-xxxx
set f to (choose file name default location (path to desktop) ¬
default name (do shell script "date +'Screen_%Y%m%d_%H%M%S.png'"))'s POSIX path
do shell script "screencapture -i " & f's quoted form