This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To have by default: apt install $something --yes # --force-yes | |
| ## at first it was: | |
| ## sudo "echo 'APT::Get::Assume-Yes \"true\";'" > /etc/apt/apt.conf.d/90forceyes | |
| ## but it gives permission denied, because the stream redirect will not be run as super user | |
| sudo bash -c "echo 'APT::Get::Assume-Yes \"true\";' > /etc/apt/apt.conf.d/90yes" | |
| # sudo bash -c "echo 'APT::Get::force-yes \"true\";' >> /etc/apt/apt.conf.d/90yes" # this one is potentialy harmful | |
| # terminal | |
| sudo apt install zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # prompt - show last 2 directories and time at the end | |
| PROMPT_DIRTRIM=2 | |
| PS1="\[\e[33m\]\w\[\e[m\] \[\e[36m\]\t\[\e[m\] $ " | |
| # setup variables | |
| mkdir ~/tmp | |
| MY_TMP=~/tmp | |
| # tmux | |
| alias tmux-print-screen="tmux capture-pane -pS -1000000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # rebind control key | |
| set -g prefix C-Space | |
| unbind C-b | |
| set-option -g history-limit 10000 | |
| # count windows from 1 | |
| set -g base-index 1 | |
| # Enable mouse control (clickable windows, panes, resizable panes) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :set number | |
| :imap kj <Esc> | |
| :set so=999 | |
| :set cursorline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Why use git aliases? | |
| ## It's much faster to operate git from command line when you don't have to | |
| ## eg. `git pull --rebase` -> becomes `git p` | |
| ## Adding an alias to bash `alias g='git'` makes it even shorter and above example becomes `g p` | |
| ## Use below content to append to your .gitconfig | |
| [include] | |
| # cd ~ && wget https://raw.githubusercontent.com/GitAlias/gitalias/master/gitalias.txt | |
| path = ~/gitalias.txt | |
| ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #console | |
| choco install sudo -Y | |
| choco install cmder -Y | |
| choco install wget -Y | |
| #file browsing | |
| choco install filezilla -Y | |
| choco install totalcommander -Y | |
| choco install tor-browser -Y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| imap kj <Esc> | |
| set so=999 | |
| # reload settings after modifying the file | |
| # :source ~/.ideavimrc | |
| # https://stackoverflow.com/questions/3776117/what-is-the-difference-between-the-remap-noremap-nnoremap-and-vnoremap-mapping |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| # Open with PackageResourceViewer, color scheme default, monokai | |
| "globals": | |
| { | |
| "line_highlight": "color(hsl(148, 100%, 25%))", | |
| } | |
| # open with PackageResourceViewer, theme, default | |
| { | |
| "class": "minimap_control", | |
| "settings": ["always_show_minimap_viewport"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { "keys": ["k", "j"], "command": "exit_insert_mode", | |
| "context": | |
| [ | |
| { "key": "setting.command_mode", "operand": false }, | |
| { "key": "setting.is_widget", "operand": false } | |
| ] | |
| } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PS1="\[\e[33m\]\W\[\e[m\] \[\e[36m\]\t\[\e[m\] $ " | |
| # navigation | |
| alias repos="cd /c/data/repos" | |
| alias ..="cd .." | |
| alias ...="cd ../.." | |
| alias ....="cd ../../.." | |
| alias ll="ls -la --color" | |
| alias llf="ls -la | grep $1" | |
| alias grep="grep --color=auto" |
NewerOlder