Posts

Showing posts with the label alias

Hiding some changings from git without .gitIgnore

Image
Hiding some changings from git without .gitIgnore Here is the link from this guy with full description, thanks to him 👏, he saved my day! ✨💖 https://henrebotha.github.io/2017/08/30/hiding-local-file-changes-from-git.html#:~:text=Tips&text=Then%20you%20can%20do%20ghide,forgotten%20about%20a%20hidden%20file. If you plan on using these, I recommend you add some aliases to your .zshrc/.bashrc file: alias ghide = 'git update-index --skip-worktree' alias gunhide = 'git update-index --no-skip-worktree' alias ghidden = 'git ls-files -v . | grep ^S' Then you can do ghide path/to/file to hide, gunhide path/to/file to unhide, and ghidden to list all hidden files. some helpful links:  https://automationpanda.com/2018/09/19/ignoring-files-with-git/

Windows Tips: shortcuts and aliases

Image
Windows tips: shortcuts and aliases https://stackoverflow.com/questions/20530996/aliases-in-windows-command-prompt - interesting approaches how to add temporary environment variables and aliases Shorts (aliases) for some exe's apps if you already have these apps: code - runs Visual Studio Code text editor code .   - run it with full content current directory as a context subl - runs Sublime Text 2|3 text editor subl  .  - the same as for VS code [ cmd.exe ] - get aliases doskey /MACROS:ALL [ powershell.exe or pwsh.exe ]  - get aliases https://mcpmag.com/articles/2014/06/10/exe-alias-in-powershell.aspx - here you can read also how to create aliases alias - powershell internal aliases get-alias | where {$_.ReferencedCommand -match "exe"} | format-table Name,Definition -autosize  - this command will show you external .EXE apps aliases  [ bash.exe or git-bash.exe ]  - get aliases alias