↧
How to make a fork bomb with fishshell?
I want to make a fork bomb with fishshell, but :(){ :|: & };: doesn't work and gives the errorfish: Command substitutions not allowed:(){ :|: & };How can I make a fork bomb with fishshell?
View ArticleHow to partially select text of input in visual mode?
For the Fish shell, to enable Vi keybindings I have the following configuration in my config.fish:# Use Vi keybindingsfunction my_vi_bindings fish_vi_key_bindings bind yy fish_clipboard_copy bind Y...
View ArticleFish equivalent of bash $(command) notation
I am currently trying out the fish shell instead of using bash. One type of notation I'm having trouble learning the fish-equivalent notation for is $(command), similar to how it is described in this...
View ArticleHow to make fish shell delete words like bash does
I'm giving a second try to the fish shell. One thing that really annoys me is the "new" behaviour of Ctrl+w shortcut.Consider following situation:$ vim ~/.config/fish/config.fish...having the cursor at...
View ArticleBash, Fish: prevent variable expansion
Am planing to switch to fish as my default shell but am having some troubles with it.Before rewrite all my script I would like to reuse the old ones using bash with '-c' option.Example:bash -c "cat...
View ArticleFish command substitution doesn't work like in bash or zsh
I have stumbled on a problem with the fish shell (which is my favorite shell) when I am trying to use command substitution:gcc (pkg-config --libs --cflags gtk+-2.0 cairo) -o drawing_widget...
View ArticleOpening terminal in vscode
I was trying to make fish my default shell, and it works in iterm2, but every time I try to open the terminal in vscode I get this error:The terminal process failed to launch: Path to shell executable...
View ArticleHow do I reliably check if I am inside systemd shell invoked by "systemd-run...
systemd-run provides --shell flag, that opens a new session. I often test high-memory applications and I use it like this:systemd-run --slice=restrict_memory.slice --shell --userThen, when I run an...
View ArticleColcon: How to change the Cmake path
While installing ROS 2 on MacOS, I encountered some problem with Colcon. It seems that it uses the wrong Cmake path.Runningcolcon build --symlink-install --packages-skip-by-dep python_qt_bindingcauses...
View Articlefish shell + WebStorm terminal: how to use Alt + backspace to delete entire word
I am trying out WebStorm and I use fish as my default shell. I am using macOS.In VSCode's integrated terminal, iTerm2, and terminal my fish shell works as I want it: it deletes an entire word with Alt...
View Articlefish shell --- how to simulate or implement a hash table, associative array,...
I am migrating from ksh to fish. I am finding that I miss the ability to define an associative array, hash table, dictionary, or whatever you wish to call it. Some cases can be simulated as inset...
View ArticleOpen a folder in Sublime Text 3 using command line
I'm trying to open a directory in sublime Text 3.I can launch sublime from the command line using the subl command.The help text show the following:Sublime Text build 3059Usage: subl [arguments]...
View ArticleHow to load a .env file's environment variables into both Bash and Fish...
I want to have a .env file with a bunch of name-value pairs, like:VAR1=xxxVAR2=yyy# sample C include dir use caseINCLUDE_DIR=/etc/include/xxxI want these variables to be available in both bash and fish...
View ArticleFish theme "bobthefish" not showing special symbols [closed]
So I installed fish and oh-my-fish, installed the "bobthefish" theme for it, It wasnt showing specials symbols so I figured I needed the Powerline font, but even after installing it and doing it...
View ArticleWezterm + ssh: characters are inserted instead of jumping between words when...
When writing commands overs SSH in Wezterm, I am unable to jump between words in my prompt when pressing ⌥+ left or ⌥+ right.When I'm not using SSH, it works fine. On ⌥+ left it inserts ;3D, and on ⌥+...
View ArticleHow do I use Fish's Alt bindings using Kitty on macOS
I acquired a macOS machine for the first time, and I can't figure out how to use commands such as alt+E to open the current command in $EDITOR.I don't want to remap the ⌘ key to alt system-wide, but I...
View ArticleAdd `where:` field to fish_history?
Fish history search (ctrl+R) currently only displays time and commands.I think it would be useful to add a "- where: {path when executing the command}" field here.- cmd: cat -n...
View ArticleMy fish is blind? (fish does not recognise any commands after setting it as...
I installed fish with homebrew on Mac OS Big Sur, Apple Silicon. Then I added /opt/homebrew/bin/fish to /etc/shells. When I now start fish from the default shell, it recognises all commands (like git...
View ArticleHow do I change the colour of directory listings with oh-my-fish?
I've recently decided to give the fish shell a shot and also started using oh-my-fish. The problem I'm having is that I can't figure out how to change the color of directory listings when running a...
View ArticleWhy is ssh-agent.service running, but when I use ssh-add I get an error...
The ssh-agent service is enabled for the user and is running without errors. (status is active).But when I try to use ssh, I get the error Could not open a connection to your authentication agent.. I...
View Article
More Pages to Explore .....