11/21/2023 0 Comments Thefuck command line githubcat_dir – replaces cat with ls when you try to cat a directory.cargo_no_command – fixes wrongs commands like cargo buid.cargo – runs cargo build instead of cargo.az_cli – fixes misspelled commands like az providers.aws_cli – fixes misspelled commands like aws dynamdb scan.ag_literal – adds -Q to ag when suggested.adb_unknown_command – fixes misspelled commands like adb logcta.Thefollowing rules are enabled by default: ![]() If a match isfound, a new command is created using the matched rule and executed. The Fuck attempts to match the previous command with a rule. Note: Alias functionality was changed in v1.34 of The Fuck How it works To fix commands recursively until succeeding, use the -r option: To run fixed commands without confirmation, use the -yeah option (or just -y for short, or -hard if you're especially frustrated): To make changes immediatelyavailable, run source ~/.bashrc (or your shell config file like. Or in your shell config (Bash, Zsh, Fish, Powershell, tcsh).Ĭhanges are only available in a new shell session. ```basheval $(thefuck -alias) You can use whatever you want as an alias, like for Mondays: #It is recommended that you place this command in your. On other systems, install The Fuck by using pip:Īlternatively, you may use an OS package manager (OS X, Ubuntu, Arch). On ChromeOS, install The Fuck using chromebrew with the following command: bashcrew install thefuck On FreeBSD, install The Fuck with the following commands: bashpkg install thefuck ![]() On Ubuntu / Mint, install The Fuck with the following commands: bashsudo apt updatesudo apt install python3-dev python3-pip python3-setuptoolssudo pip3 install thefuck On OS X, you can install The Fuck via Homebrew (or via Linuxbrew on Linux): ➜ fucksudo apt-get install vim password for nvbn:Reading package lists. If you're not afraid of blindly running corrected commands, the require_confirmation settings option can be disabled: ```bash➜ git brnchgit: 'brnch' is not a git command. ```bash➜ puthonNo command 'puthon' found, did you mean: Command 'python' from package 'python-minimal' (main) Command 'python' from package 'python3' (main)zsh: command not found: puthon ➜ fuckgit push -set-upstream origin master Counting objects: 9, done.``` ```bash➜ git pushfatal: The current branch master has no upstream branch.To push the current branch and set the remote as upstream, use git push -set-upstream origin master ```bash➜ apt-get install vimE: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? Is The Fuck too slow? Try the experimental instant mode! ![]() The Fuck is a magnificent app, inspired by a tweet,that corrects errors in previous console commands. Magnificent app which corrects your previous console command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |