AnonSec Team
Server IP : 161.35.85.9  /  Your IP : 216.73.217.138
Web Server : nginx/1.30.4
System : Linux cheapdeb-ams3 7.1.13+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.1.13-1 (2026-09-03) x86_64
User : root ( 0)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/fish/functions/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /usr/share/fish/functions/__fish_move_last.fish
# localization: skip(private)
function __fish_move_last -d "Move the last element of a directory history from src to dest"
    set -l src $argv[1]
    set -l dest $argv[2]

    set -l size_src (count $$src)

    if test $size_src = 0
        # Cannot make this step
        # Print a bel, which is the character to print for notifications like these.
        printf \a
        return 1
    end

    # Append current dir to the end of the destination
    set -g (echo $dest) $$dest $PWD

    set -l ssrc $$src

    # Change dir to the last entry in the source dir-hist
    builtin cd $ssrc[$size_src]

    # Keep all but the last from the source dir-hist
    set -e (echo $src)\[$size_src]

    # All ok, return success
    return 0
end

AnonSec - 2021