mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Update skel
This commit is contained in:
9
dotfiles/gitconfig.d/aliases
Normal file
9
dotfiles/gitconfig.d/aliases
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[alias]
|
||||||
|
commit-assumed = "!f() { \
|
||||||
|
file=\"$1\"; \
|
||||||
|
shift; \
|
||||||
|
git update-index --no-assume-unchanged \"$file\" && \
|
||||||
|
git add \"$file\" && \
|
||||||
|
git commit \"$@\" && \
|
||||||
|
git update-index --assume-unchanged \"$file\"; \
|
||||||
|
}; f"
|
||||||
@@ -9,7 +9,7 @@ if [ -S "${SSH_AUTH_SOCK}" ] ; then
|
|||||||
SSH_REMOTE_AUTH_SOCK="${SSH_AUTH_SOCK}"
|
SSH_REMOTE_AUTH_SOCK="${SSH_AUTH_SOCK}"
|
||||||
export SSH_REMOTE_AUTH_SOCK
|
export SSH_REMOTE_AUTH_SOCK
|
||||||
# Always update the symlink to the latest session's socket.
|
# Always update the symlink to the latest session's socket.
|
||||||
# This ensures that tmux (which uses the static path) always points to a
|
# This ensures that tmux (which uses the static path) always points to a
|
||||||
# current agent.
|
# current agent.
|
||||||
mkdir -p "$(dirname "${REMOTE_LINK}")"
|
mkdir -p "$(dirname "${REMOTE_LINK}")"
|
||||||
ln -sf "${SSH_AUTH_SOCK}" "${REMOTE_LINK}"
|
ln -sf "${SSH_AUTH_SOCK}" "${REMOTE_LINK}"
|
||||||
|
|||||||
Reference in New Issue
Block a user