Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature. gitlab.com/andreijiroh-dev/dotfiles
linux dotfiles
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(shell-aliases): migrate from dotfiles-legacy

* Changed shebang to regular sh for possible POSIX compatibility
* Updated header notes, probably add SPDX-License-Identifier later

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>

+74
+72
.config/aliases
··· 1 + #!/bin/env sh 2 + 3 + # Aliases across shells. Note that this is only tested on Bash and Zsh, with a bit of testing 4 + # on ash. 5 + 6 + # basic git commands 7 + alias clone="git clone" 8 + alias stats="git status" 9 + ## shortcuts to creating commits 10 + alias commit="git commit --signoff --gpg-sign" 11 + alias commit-nogpg="git commit --signoff --no-gpg-sign" 12 + alias new-checkpoint="commit" 13 + alias new-checkpoint-nogpg="commit-nogpg" 14 + ## shortcuts to creating tags 15 + alias tag-checkpoint="git tag --gpg-sign" 16 + alias tag-checkpoint-nogpg="git tag --no-gpg-sign" 17 + alias new-tag="tag-checkpoint" 18 + alias new-tag-nogpg="tag-checkpoint-nogpg" 19 + ## shortcuts to managing yiff stash 20 + alias stash="git stash push --keep-index" 21 + alias pop-stash="git stash pop" 22 + alias apply-stash="git stash apply" 23 + alias yeet-stash="git stash drop" 24 + ## staging stuff 25 + alias stage="git add" 26 + alias unstage="git restore --staged" 27 + alias nuke-from-index="git rm" 28 + 29 + # branch management 30 + alias rename-branch="git branch -m" 31 + alias set-upstream-remote="git branch -u" 32 + 33 + # remote management 34 + alias change-origin="git remote set-url origin" 35 + alias change-upstream="git remote set-url upstream" 36 + alias add-remote="git remote add" 37 + alias change-remote-url="git remote set-url" 38 + alias nuke-remote="git remote remove" 39 + alias remove-remote="nuke-remote" 40 + 41 + # git push 42 + alias push="git push" 43 + ## add main:master since Git assumes local branch to 44 + ## remote branch when running this alias 45 + alias deploy-divio="git push divio" 46 + 47 + # fetch / pull 48 + alias fetch="git fetch --all" 49 + ## depending on remote branch at upstream, 50 + ## assumes its same branch. 51 + alias pull-upstream="fetch && git pull upstream" 52 + alias pull-origin="fetch && git pull origin" 53 + 54 + # history-cleanup like scripts 55 + alias clean-shellhis="history -c && clear" 56 + 57 + # test SSH connections 58 + alias test-gh-ssh="ssh -p 22 git@github.com" 59 + alias test-gl-ssh="ssh -p 22 git@gitlab.com" 60 + 61 + # ssh-agent stuff 62 + ## quock shortcut into add-ssh-keys stuff 63 + #alias add-ssh-key="$HOME/.dotfiles/bin/add-ssh-keys" 64 + 65 + # shortcuts to some functions 66 + alias edit-script="edit-script-file" 67 + 68 + # add a bit of test here 69 + alias guild-test="echo successfully imported owo" 70 + 71 + # shortcuts for rdp stuff 72 + alias bshq-cursed='rdesktop --user cursed-remote-user -r audio:local -x lan -r clipboard:PRIMARYCLIPBOARD -n guildedguy bullshit.hq'
+2
.profile
··· 1 + #!/usr/bin/env sh 1 2 # if running bash 2 3 if [ -n "$BASH_VERSION" ]; then 3 4 # include .bashrc if it exists ··· 7 8 fi 8 9 9 10 source "$HOME/.env" 11 + source "$HOME/.config/aliases"